Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mozilla.org SSO Login? #192

Open
Milkdrop opened this issue Jul 23, 2020 · 4 comments
Open

Mozilla.org SSO Login? #192

Milkdrop opened this issue Jul 23, 2020 · 4 comments

Comments

@Milkdrop
Copy link

Do you support logging in through SSO (which is the only method of logging into mozilla's Matrix homeserver)?

@poljar
Copy link
Collaborator

poljar commented Jul 23, 2020

Yes, at least one client based on nio implements SSO support and as far as I know some people use it on the Mozilla server.

@ser
Copy link

ser commented Mar 28, 2022

@poljar are you able to provide any example for SAML2? I am seeking it for a long time and I'm unable to find. As far as I can understand I should use login_raw from nio - but how to fill the auth_dict for SAML2 is a big question. My server operator gives SAML2 as the only possible kind of authorisation.

@lilydjwg
Copy link

I've succeeded after a lot of reading and trying. The exact code has been lost but the procedure for mozilla.org is:

  1. open https://mozilla.modular.im/_matrix/static/client/login/ and login in your browser (or if you have an HTTP server to receive code: https://mozilla.modular.im/_matrix/client/r0/login/sso/redirect?redirectUrl=YOUR_URL).
  2. copy the loginToken parameter in the final URL after login.
  3. Use {"type": "m.login.token", "token": "<loginToken>"} as your auth_dict.

@ser
Copy link

ser commented Mar 28, 2022

I need to do it programmatically == no browser or human assisting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants