Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Support linking & unlinking to an existing account when using SSO #9441

Open
uumas opened this issue Feb 18, 2021 · 13 comments
Open

Support linking & unlinking to an existing account when using SSO #9441

uumas opened this issue Feb 18, 2021 · 13 comments
Labels
A-Social Login Login via external identity providers A-SSO Single Sign-On (maybe OIDC) T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@uumas
Copy link

uumas commented Feb 18, 2021

Currently the username picker says "<username> is not available, please choose another." if one tries to enter an existing username. It could instead offer to link the existing local account and ask for its password.

@clokep clokep added A-Social Login Login via external identity providers T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. labels Feb 18, 2021
@richvdh
Copy link
Member

richvdh commented Feb 19, 2021

yes. We also need the ability to unlink an SSO account, imho.

@poproar
Copy link

poproar commented Mar 21, 2021

I would plus one this because I made my account back when it was RIOT and now I can no longer log in with user name and password. The riot app only allows SSO. But maybe I just need to ditch the ubuntu riot app?

@richvdh
Copy link
Member

richvdh commented Mar 22, 2021

@poproar it sounds like you are using an old, buggy version of Riot.

@toastal
Copy link

toastal commented Jul 12, 2021

Log in to matrix.org

Choose an identity provider to log in

  • [sVesTtrFDT] GitHub
  • [ZlnaaZNPxt] Google
  • [MCVOEmFgVi] GitLab
  • [nsyeLIgzxa] Facebook
  • [QQKNSOdLiM] Apple

An open network for secure, decentralized communication.
© 2021 The Matrix.org Foundation C.I.C.

^ SSO rendered from w3m

I can't OAuth for Weechat because of this. There is no SSO login option for username+password. There is no ability to link with the existing authenticated account in the browser. I thought I could use my GitLab account with the same email addresses to link, but that didn't work either. The SSO flow took me to choosing a username, but when entering my existing username, I unsurprisingly got the error User ID already taken. There's nothing in the UI of the web app or Android app about linking a GitLab or other social account with my existing username either.

@richvdh
Copy link
Member

richvdh commented Jul 12, 2021

@toastal if you have an existing account, you should log in with those details rather than using OAuth. If you're not seeing an option for that, that is a bug with your client, not Synapse.

@toastal
Copy link

toastal commented Jul 12, 2021

@richvdh So you mean using the username & password as credentials from inside the client? If that's the case, I'll double check the Weechat client's Matrix bridge. Maybe it's throwing up the OAuth link if it's misconfigured or I missed something else in the error log.


Ah, yes. By default it throws up SSO if (un|mis)configured. That's not the best UX.

@bluedasher13
Copy link

bluedasher13 commented Apr 25, 2022

I have the impression that Todoist, Toggl Track, Chatwork, Tipi, and Twist will let me enter the existing account.

And Toggl Track provides enable/ disable connection options.

I asked about this problem in the Element.io repo and they suggest me to opening an issue here.
#21863

@davidpiano
Copy link

I'm using the Element app on Android. I signed in to it using my GitHub name and password. Now there's an "Encryption upgrade available" message covering up the top part of the app - but when I tap on that message to do something about it, another message comes up, "Re-authentication needed". But (probably because I signed in using an outside name & password), that message just sits there blocking the app until I cancel it.

So, my question: is there a workaround that would allow me to solve this? Is an official fix expected in the near-ish future? Or is this a tricky problem with no solution in sight, and I should just create a new account under a different name?

@richvdh
Copy link
Member

richvdh commented May 12, 2023

@davidpiano I don't think that's relevant to this issue. Suggest you raise an issue on the element-android issue tracker.

@davidpiano
Copy link

Understood, and thanks.

@clokep clokep changed the title Support linking an existing account with SSO username picker Support linking & unlinking to an existing account when using SSO Sep 5, 2023
@CoelacanthusHex
Copy link

yes. We also need the ability to unlink an SSO account, imho.

Users in Mozilla Instance need this feature. Or I will lose my matrix account when I change my Firefox Account primary email.

@clokep
Copy link
Member

clokep commented Oct 16, 2023

Or I will lose my matrix account when I change my Firefox Account primary email.

This is due to a misconfiguration of Mozilla's server where they use your email address as the canonical identifier for the account (instead of a UUID or some internal identifier).

@alexandru0-dev
Copy link

+1 as i would like to unlink my github account in my case

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Social Login Login via external identity providers A-SSO Single Sign-On (maybe OIDC) T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

10 participants