<?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[SSO with Element not working]]></title><description><![CDATA[<p dir="auto">Is anyone else experiencing problems with SSO with matrix? Upon clicking "log in with X" there seem to be various redicts which end up either in an SSL error or the message</p>
<p dir="auto"><code>Too many redirects occurred trying to open “https://matrix.tld.com/_matrix/client/v3/login/sso/redirect/oidc-cloudron?redirectUrl=https%3A%2F%2Fchat.tld.com%2F&amp;org.matrix.msc3824.action=login”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.</code></p>
<p dir="auto">depending on the client used.</p>
]]></description><link>https://forum.cloudron.io/topic/13642/sso-with-element-not-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 23:13:11 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13642.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Apr 2025 18:57:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SSO with Element not working on Mon, 21 Apr 2025 10:09:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> not sure. Maybe I accidentally removed it when I set up Prometheus</p>
]]></description><link>https://forum.cloudron.io/post/106028</link><guid isPermaLink="true">https://forum.cloudron.io/post/106028</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Mon, 21 Apr 2025 10:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Mon, 21 Apr 2025 09:22:24 GMT]]></title><description><![CDATA[<p dir="auto">Good find. I wonder why it was no set in that instance. The configs from the package should have it since 5 years <a href="https://git.cloudron.io/packages/synapse-app/-/blame/master/homeserver.yaml.template?ref_type=heads#L14" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/synapse-app/-/blame/master/homeserver.yaml.template?ref_type=heads#L14</a></p>
]]></description><link>https://forum.cloudron.io/post/106017</link><guid isPermaLink="true">https://forum.cloudron.io/post/106017</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 21 Apr 2025 09:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Sun, 20 Apr 2025 12:30:45 GMT]]></title><description><![CDATA[<p dir="auto">I figured it out, here's what was happening:</p>
<p dir="auto">The client was trying to access the SSO redirect URL with HTTP, but my server was configured to use HTTPS:</p>
<pre><code>Requested URI http://matrix.due.ren/_matrix/client/r0/login/sso/redirect/oidc-cloudron?redirectUrl=element://connect?transaction_id=m2111693422.2 is not canonical: redirecting to https://matrix.due.ren/_matrix/client/r0/login/sso/redirect/oidc-cloudron?redirectUrl=element://connect?transaction_id=m2111693422.2
</code></pre>
<p dir="auto">This redirection kept happening repeatedly (as shown by the multiple identical log entries with different request IDs), creating a loop. Synapse didn't properly handle the protocol conversion between HTTP and HTTPS.</p>
<p dir="auto">Here's how I fixed the issue:<br />
Added the x_forwarded: true setting to my configuration's listeners section:</p>
<pre><code>listeners:
  - port: 8008
    type: http
    bind_addresses: ['0.0.0.0']
    x_forwarded: true  # Added this line
    resources:
      - names: [client, federation, metrics]
        compress: false
</code></pre>
]]></description><link>https://forum.cloudron.io/post/106001</link><guid isPermaLink="true">https://forum.cloudron.io/post/106001</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Sun, 20 Apr 2025 12:30:45 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Wed, 16 Apr 2025 18:28:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> hmm fresh installation (<a href="http://chat.as.ci" target="_blank" rel="noopener noreferrer nofollow ugc">chat.as.ci</a>) seems to work <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f610.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--neutral_face" style="height:23px;width:auto;vertical-align:middle" title="😐" alt="😐" /><br />
Now I gotta see what’s different</p>
]]></description><link>https://forum.cloudron.io/post/105839</link><guid isPermaLink="true">https://forum.cloudron.io/post/105839</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Wed, 16 Apr 2025 18:28:27 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Wed, 16 Apr 2025 09:03:32 GMT]]></title><description><![CDATA[<p dir="auto">If you install a fresh instance, do you see the same behavior just with a different subdomain then? That would at least mean that this is not the app configs but something related to the system setup</p>
]]></description><link>https://forum.cloudron.io/post/105796</link><guid isPermaLink="true">https://forum.cloudron.io/post/105796</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 16 Apr 2025 09:03:32 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Tue, 15 Apr 2025 18:31:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I couldn't find any issues:</p>
<pre><code># https://github.com/element-hq/synapse/blob/master/docs/sample_config.yaml

# if you change this, change the auto_join_rooms below as well
server_name: "due.ren"
pid_file: /run/synapse/homeserver.pid
public_baseurl: https://matrix.due.ren
push:
  enabled: true
  include_content: false
  group_unread_count_by_room: true
  # jitter_delay: "10s"
experimental_features:
  msc3266_enabled: true
forget_rooms_on_leave: true
forgotten_room_retention_period: 7d
enable_metrics: true
listeners:
  - port: 8008
    type: http
    bind_addresses: ['0.0.0.0'] # Ensure it’s not just localhost if Prometheus is on a different machine/container
    resources:
      - names: [client, federation, metrics]
        compress: false
database:
  name: "psycopg2"
  args:
    # Path to the database
    user: xxx
    password: xxx
    database: xxx
    host: postgresql
    cp_min: 5
    cp_max: 10
background_updates:
  background_update_duration_ms: 100
  sleep_enabled: true
  sleep_duration_ms: 1000
  min_batch_size: 1
  default_batch_size: 100
email:
  smtp_host: mail
  smtp_port: 2525
  smtp_user: "matrix.app@due.ren"
  smtp_pass: "xxx"
  require_transport_security: false
  app_name: matrix.due.ren
  notif_from: "Matrix &lt;matrix.app@due.ren&gt;"
  enable_notifs: true
  notif_for_new_users: true
  client_base_url: "https://matrix.due.ren"
  validation_token_lifetime: 15m
  invite_client_location: https://chat.due.ren
  subjects:
    message_from_person_in_room: "[%(app)s] You have a message on %(app)s from %(person)s in the %(room)s room..."
    message_from_person: "[%(app)s] You have a message on %(app)s from %(person)s..."
    messages_from_person: "[%(app)s] You have messages on %(app)s from %(person)s..."
    messages_in_room: "[%(app)s] You have messages on %(app)s in the %(room)s room..."
    messages_in_room_and_others: "[%(app)s] You have messages on %(app)s in the %(room)s room and others..."
    messages_from_person_and_others: "[%(app)s] You have messages on %(app)s from %(person)s and others..."
    invite_from_person_to_room: "[%(app)s] %(person)s has invited you to join the %(room)s room on %(app)s..."
    invite_from_person: "[%(app)s] %(person)s has invited you to chat on %(app)s..."
    password_reset: "[%(server_name)s] Password reset"
    email_validation: "[%(server_name)s] Validate your email"
turn_uris:
  - turn:turn.due.ren:5349?transport=udp
  - turn:turn.due.ren:5349?transport=tcp
  - turns:turn.due.ren:5349?transport=udp
  - turns:turn.due.ren:5349?transport=tcp
turn_shared_secret: "xxx"
turn_allow_guests: true
turn_user_lifetime: 86400000
federation_ip_range_blacklist:
  - '127.0.0.0/8'
  - '10.0.0.0/8'
  - '172.16.0.0/12'
  - '192.168.0.0/16'
  - '100.64.0.0/10'
  - '169.254.0.0/16'
  - '::1/128'
  - 'fe80::/64'
  - 'fc00::/7'
enable_registration: false
enable_registration_without_verification: false
registration_shared_secret: "xxx"
allow_guest_access: false
enable_group_creation: true
report_stats: false
auto_accept_invites:
  enabled: true
  only_for_direct_messages: true
  only_from_local_users: true
  worker_to_run_on: "worker_1"
signing_key_path: "/app/data/configs/signing.key"
url_preview_enabled: true
url_preview_ip_range_blacklist:
  - '127.0.0.0/8'
  - '10.0.0.0/8'
  - '172.16.0.0/12'
  - '192.168.0.0/16'
  - '100.64.0.0/10'
  - '169.254.0.0/16'
  - '::1/128'
  - 'fe80::/64'
  - 'fc00::/7'
media_store_path: "/app/data/data/media_store"
max_upload_size: 200M
max_image_pixels: "32M"
dynamic_thumbnails: true
app_service_config_files:
  - /app/data/configs/registration.yaml
server_notices:
  system_mxid_localpart: notices
  system_mxid_display_name: "Server Notices"
  system_mxid_avatar_url: "https://static.due.ren/site/logo.png"
  room_name: "Server Notices"
  room_avatar_url: "https://static.due.ren/site/logo.png"
  room_topic: "Room used by your server admin to notice you of important information"
  auto_join: true
trusted_key_servers: []
password_config:
  enabled: true
  localdb_enabled: true
log_config: /app/data/configs/log.config
presence:
  enabled: true
delete_stale_devices_after: 12w
admin_contact: 'mailto:admin@due.ren'
thumbnail_sizes:
  - width: 32
    height: 32
    method: crop
  - width: 96
    height: 96
    method: crop
  - width: 320
    height: 240
    method: scale
  - width: 640
    height: 480
    method: scale
  - width: 800
    height: 600
    method: scale
serve_server_wellknown: true
user_directory:
  enabled: true
  search_all_users: true
  prefer_local_users: true
web_client_location: https://chat.due.ren/
oidc_providers:
  - idp_id: cloudron
    idp_name: due.ren
    issuer: https://my.due.ren/openid
    client_id: xxx
    client_secret: xxx
    scopes:
      - openid
      - email
      - profile
    authorization_endpoint: https://my.due.ren/openid/auth
    token_endpoint: https://my.due.ren/openid/token
    userinfo_endpoint: https://my.due.ren/openid/me
    allow_existing_users: true
    skip_verification: true
    user_mapping_provider:
      config:
        localpart_template: '{{ user.sub }}'
        display_name_template: '{{ user.name }}'

</code></pre>
]]></description><link>https://forum.cloudron.io/post/105758</link><guid isPermaLink="true">https://forum.cloudron.io/post/105758</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Tue, 15 Apr 2025 18:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Tue, 15 Apr 2025 12:17:59 GMT]]></title><description><![CDATA[<p dir="auto">I can see the redirects on your server here as well. So this is synapse redirecting to itself endlessly. Maybe something off in your config file there?</p>
]]></description><link>https://forum.cloudron.io/post/105726</link><guid isPermaLink="true">https://forum.cloudron.io/post/105726</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 15 Apr 2025 12:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Tue, 15 Apr 2025 11:25:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> DNS hosted on cloudflare but not proxied. Unfortunately logs fill up so quickly it’s hard to keep track. It’s over 200MB, I’ll try to download them later. You can try yourself here: chat.due.ren</p>
]]></description><link>https://forum.cloudron.io/post/105717</link><guid isPermaLink="true">https://forum.cloudron.io/post/105717</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Tue, 15 Apr 2025 11:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Tue, 15 Apr 2025 08:03:33 GMT]]></title><description><![CDATA[<p dir="auto">Seems to work here at least, do you have any extra proxy or so in front of the instance which might interfere here? If the browser login also fails, do you see in the inspector who issues those redirects somehow? Also anything interesting from the app logs (maybe both element and synapse)</p>
]]></description><link>https://forum.cloudron.io/post/105697</link><guid isPermaLink="true">https://forum.cloudron.io/post/105697</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 15 Apr 2025 08:03:33 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Mon, 14 Apr 2025 15:34:03 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 am also. But regular auto works without problems. This is not working on the regular element apps on mobile or web.</p>
]]></description><link>https://forum.cloudron.io/post/105671</link><guid isPermaLink="true">https://forum.cloudron.io/post/105671</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Mon, 14 Apr 2025 15:34:03 GMT</pubDate></item><item><title><![CDATA[Reply to SSO with Element not working on Mon, 14 Apr 2025 09:15:58 GMT]]></title><description><![CDATA[<p dir="auto">Are you using Element X app? I think it requires the new auth mechanism</p>
]]></description><link>https://forum.cloudron.io/post/105658</link><guid isPermaLink="true">https://forum.cloudron.io/post/105658</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 14 Apr 2025 09:15:58 GMT</pubDate></item></channel></rss>