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

Module doesn't provide get_supported_login_types() #90

Open
Half-Shot opened this issue Jun 2, 2020 · 6 comments
Open

Module doesn't provide get_supported_login_types() #90

Half-Shot opened this issue Jun 2, 2020 · 6 comments
Labels

Comments

@Half-Shot
Copy link
Contributor

Needed in https://github.com/matrix-org/synapse/blob/b2b86990705de8a099093ec141ad83e09f182034/synapse/handlers/auth.py#L95-L100

Otherwise, this doesn't appear to expose the correct flow for GET /login

@clokep
Copy link
Member

clokep commented Jun 2, 2020

The workaround for this is to enable password authentication manually in the config.

@richvdh
Copy link
Member

richvdh commented Jun 2, 2020

it only provides password, so doesn't need to provide get_supported_login_types ?

@Half-Shot
Copy link
Contributor Author

My point is that I want the module to return LoginType.PASSWORD, as otherwise users need to remember to enable password_enabled in the synapse configuration. If you don't do this, LDAP won't work as no flows will be returned.

@richvdh
Copy link
Member

richvdh commented Jun 2, 2020

you mean they have to remember not to disable password_enabled, since it's enabled by default?

@richvdh
Copy link
Member

richvdh commented Jun 2, 2020

tbh if I disabled password login and found I could still log in with a password, I would be...surprised.

@Half-Shot
Copy link
Contributor Author

Well, I've always read password_enabled as Synapse password authentication as oppose to LDAP password authentication, so I can see where this gets confused. But granted, it could include LDAP.

I feel like we could at least document that adding the password_provider isn't enough, and you need to enable this too, even if it is by default.

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

No branches or pull requests

3 participants