question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSO login doesn't work for custom profile

See original GitHub issue

Steps to reproduce

  1. Run flatpak run im.riot.Riot --profile pikaviestin
  2. Set homeserver URL as https://pikaviestin.fi/
  3. Select Continue with authentik
  4. Web browser opens.
  5. Login
  6. Select “Continue”
  7. Another Element opens without the specified profile (it keeps loading forever, but I presume it’s the default profile for another account)

Outcome

What did you expect?

I expected Element to be logged in.

What happened instead?

I got a different Element instance with a different profile.

Operating system

Fedora release 36 (Thirty Six)

Application version

1.10.10 ?

How did you install the app?

https://flathub.org/apps/details/im.riot.Riot (Element doesn’t provide Fedora packaging and “blessed” repository is discontinued https://github.com/vector-im/element-web/issues/3781#issuecomment-1054068455)

Homeserver

pikaviestin.fi on Synapse 1.51.0

Will you send logs?

No

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
t3chguycommented, Apr 19, 2022

Can confirm it works as expected on Ubuntu 20.04 with the official deb.

For the record the way this works is

  1. Element (ProfileX) appends to file sso-sessions.json in the Default Profile’s data directory a $key->/path/to/ProfileX
  2. Element (ProfileX) opens browser with callback to element://<…>?element-desktop-ssoid=$key
  3. Browser opens the callback
  4. Element sees the ssoid in the URL passed to it for handling and looks up the profile to use in the JSON map.
0reactions
Mikaelacommented, Apr 19, 2022

I don’t have an officially supported release available, but I opened https://github.com/flathub/im.riot.Riot/issues/268 in case they are able to reproduce or figure out which side this issue is on. Meanwhile I am asking if anyone is using an officially supported operating system and could test this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSO login doesn't work for custom profile · Issue #268 - GitHub
Run flatpak run im.riot.Riot --profile pikaviestin · Select Continue with authentik · Web browser opens. · Login · Select "Continue" · Another ...
Read more >
SSO does not work and users are getting prompted for ...
Click 'Custom Level' button, under User Authentication section, find 'Automatic logon only in Intranet Zone'. Ensure that it is selected. Usually group policy ......
Read more >
Troubleshoot single sign-on (SSO) - Google Support
This document provides steps to resolve common error messages encountered during the integration or use of SAML-based single sign-on (SSO) with Google ...
Read more >
Require Users to Log In with SSO - Salesforce Help
Disable logins using Salesforce credentials. In Setup, in the Quick Find box, enter Single Sign-On , then select Single Sign-On Settings. Click Edit....
Read more >
You only need to call`aws sso login` once for all your profiles
aws/cli/cache . This means if you call aws sts get-caller-identity --profile AcctA-Role1 again, it won't load the SSO token or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found