<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OpenID URI configuration issue (for Synapse&#x27;s MAS)]]></title><description><![CDATA[<p dir="auto">Guess that would be of use to Cloudron as well - I'm configuring MAS now (as a follow up from <a href="https://forum.cloudron.io/topic/13140/we-need-the-matrix-authentication-service-mas/9">https://forum.cloudron.io/topic/13140/we-need-the-matrix-authentication-service-mas/9</a>) and I'm facing the following error:</p>
<p dir="auto"><code>redirect_uri did not match any of the client's registered redirect_uris</code></p>
<p dir="auto">I've registered the client <code>cid-ge9eaf52aaff129a8df85b168330e582</code> with callback URL: <a href="https://auth.mydomain.com/upstream/callback/" target="_blank" rel="noopener noreferrer nofollow ugc">https://auth.mydomain.com/upstream/callback/</a></p>
<p dir="auto"><em>Decoded</em> URL of the page where I see the error is:<br />
<a href="https://my.mydomain.com/openid/auth?response_type=code&amp;client_id=cid-ge9eaf52aaff129a8df85b168330e582&amp;redirect_uri=https://auth.mydomain.com/upstream/callback/02JRTE26ER59ZCVR8P81GHD2V5&amp;scope=email+openid+profile&amp;state=IvtPGE8sYTtD0u1a&amp;nonce=8u6Ijs0z7dDwGriu&amp;code_challenge_method=S256&amp;code_challenge=hnG2HcdLQBrJO3DYUCg3OcapcvYxElAu5AO_28MLpg5" target="_blank" rel="noopener noreferrer nofollow ugc">https://my.mydomain.com/openid/auth?response_type=code&amp;client_id=cid-ge9eaf52aaff129a8df85b168330e582&amp;redirect_uri=https://auth.mydomain.com/upstream/callback/02JRTE26ER59ZCVR8P81GHD2V5&amp;scope=email+openid+profile&amp;state=IvtPGE8sYTtD0u1a&amp;nonce=8u6Ijs0z7dDwGriu&amp;code_challenge_method=S256&amp;code_challenge=hnG2HcdLQBrJO3DYUCg3OcapcvYxElAu5AO_28MLpg5</a></p>
<p dir="auto">So, <code>redirect_uri == https://auth.mydomain.com/upstream/callback/02JRTE26ER59ZCVR8P81GHD2V5...</code> which looks to be in line with <code>https://auth.mydomain.com/upstream/callback/</code> that I've registered (and so does client id).</p>
<p dir="auto">Unless, cloudron expect to see exactly the same URL? If so - is there any quick way to resolve that?<br />
I'm ready to patch some files directly if required, if that would be added in the coming release.</p>
]]></description><link>https://forum.cloudron.io/topic/13648/openid-uri-configuration-issue-for-synapse-s-mas</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 09:26:47 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13648.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Apr 2025 22:14:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Fri, 13 Mar 2026 12:47:57 GMT]]></title><description><![CDATA[<p dir="auto">We looked into this, created a community app and documented everything here:<br />
<a href="https://forum.cloudron.io/topic/15225/matrix-authentication-service">https://forum.cloudron.io/topic/15225/matrix-authentication-service</a></p>
]]></description><link>https://forum.cloudron.io/post/121795</link><guid isPermaLink="true">https://forum.cloudron.io/post/121795</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 13 Mar 2026 12:47:57 GMT</pubDate></item><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Wed, 16 Apr 2025 09:52:24 GMT]]></title><description><![CDATA[<p dir="auto">Negative. Please, disregard what have been said earlier: OpenID from Cloudron could be used as is.</p>
<p dir="auto">Happy to share my findings on setting up the service with <a class="plugin-mentions-user plugin-mentions-a" href="/user/vladimir.d" aria-label="Profile: vladimir.d">@<bdi>vladimir.d</bdi></a> or whoever will be doing this configuration for everyone on Cloudron.</p>
]]></description><link>https://forum.cloudron.io/post/105800</link><guid isPermaLink="true">https://forum.cloudron.io/post/105800</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Wed, 16 Apr 2025 09:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Wed, 16 Apr 2025 08:25:13 GMT]]></title><description><![CDATA[<p dir="auto">From Cloudron <a href="https://git.cloudron.io/packages/synapse-app/-/blob/master/CloudronManifest.json?ref_type=heads#L16" target="_blank" rel="noopener noreferrer nofollow ugc">manifest file I can see</a> that you use callback as a static rule:</p>
<pre><code>"loginRedirectUri": "/_synapse/client/oidc/callback"
</code></pre>
<p dir="auto">Which is pretty much in line with what I wrote earlier -&gt; Cloudron OpenID component needs improvements in order for Synapse's MAS to work.</p>
]]></description><link>https://forum.cloudron.io/post/105794</link><guid isPermaLink="true">https://forum.cloudron.io/post/105794</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Wed, 16 Apr 2025 08:25:13 GMT</pubDate></item><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Wed, 16 Apr 2025 08:22:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> I believe it's a question of support still - as I'm trying to figure out to configure Cloudron's OpenID to work with external app, which Cloudron is about to repackage on it's own.</p>
<p dir="auto">The link you've provided - is related to configuring Synapse server, while the issue is with Cloudron's OpenID and the way it handles <code>redirect_uri</code>.</p>
<p dir="auto">Please, let me know if I shall not expect any reasonable and prompt support on that - if that is the case, I will have to replace the Cloudron functionality as a platform, and for that I will need quite some time.</p>
<p dir="auto">I would be happy to work with someone from the team however, to keep Cloudron in my perimeter and share everything I will work on, so that you would be able to merge Synapse MAS and Element Call into the platform easily.</p>
]]></description><link>https://forum.cloudron.io/post/105792</link><guid isPermaLink="true">https://forum.cloudron.io/post/105792</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Wed, 16 Apr 2025 08:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Wed, 16 Apr 2025 07:12:06 GMT]]></title><description><![CDATA[<p dir="auto">Not an expert on this, I suspect one has to try it out to know what the issue is . But <a href="https://git.cloudron.io/packages/synapse-app/-/blob/master/start.sh?ref_type=heads#L73" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/synapse-app/-/blob/master/start.sh?ref_type=heads#L73</a> is how we configure OIDC in the existing synapse and that of course works .</p>
]]></description><link>https://forum.cloudron.io/post/105789</link><guid isPermaLink="true">https://forum.cloudron.io/post/105789</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Wed, 16 Apr 2025 07:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Tue, 15 Apr 2025 09:57:33 GMT]]></title><description><![CDATA[<p dir="auto">That looks to be an error produced by <code>oidc-provider</code> module in use of Cloudron (<code>InvalidRedirectUri</code> exception), looks like it is raised by <code>/home/yellowtent/box/src/oidc.js</code>.</p>
<p dir="auto">oidc-provider module provides information how to use wildcard redirect_uri, warming that is shall not be used in production: <a href="https://github.com/panva/node-oidc-provider/blob/main/recipes/redirect_uri_wildcards.md" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/panva/node-oidc-provider/blob/main/recipes/redirect_uri_wildcards.md</a></p>
<p dir="auto">It looks to me like <code>oidc.js</code> logic has to be altered in a way to let wildcard at the end of the redirect_uri, as otherwise Synapse's MAS won't work.</p>
<p dir="auto">Unless I'm missing something.</p>
]]></description><link>https://forum.cloudron.io/post/105712</link><guid isPermaLink="true">https://forum.cloudron.io/post/105712</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Tue, 15 Apr 2025 09:57:33 GMT</pubDate></item><item><title><![CDATA[Reply to OpenID URI configuration issue (for Synapse&#x27;s MAS) on Mon, 14 Apr 2025 22:29:56 GMT]]></title><description><![CDATA[<p dir="auto">Element's MAS requirements <a href="https://element-hq.github.io/matrix-authentication-service/setup/sso.html#general-configuration" target="_blank" rel="noopener noreferrer nofollow ugc">are</a> as follow:</p>
<blockquote>
<p dir="auto">create an OAuth 2.0/OIDC client on the provider's side, using the following parameters:</p>
<ul>
<li>redirect_uri: https://&lt;auth-service-domain&gt;/upstream/callback/&lt;id&gt;</li>
<li>response_type: code</li>
<li>response_mode: query</li>
<li>grant_type: authorization_code</li>
</ul>
</blockquote>
]]></description><link>https://forum.cloudron.io/post/105683</link><guid isPermaLink="true">https://forum.cloudron.io/post/105683</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Mon, 14 Apr 2025 22:29:56 GMT</pubDate></item></channel></rss>