Mozilla.org SSO Login?
Do you support logging in through SSO (which is the only method of logging into mozilla's Matrix homeserver)?
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.
@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.
I've succeeded after a lot of reading and trying. The exact code has been lost but the procedure for mozilla.org is:
- 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).
- copy the
loginTokenparameter in the final URL after login. - Use
{"type": "m.login.token", "token": "<loginToken>"}as yourauth_dict.
I need to do it programmatically == no browser or human assisting.