Skip to content

Conversation

reivilibre
Copy link
Contributor

See https://matrix-org.github.io/synapse/latest/password_auth_providers.html#optional-methods

Also note that the source code of Synapse suggests the return value of False triggers an error.

See https://matrix-org.github.io/synapse/latest/password_auth_providers.html#optional-methods

Also note that the source code of Synapse suggests the return value of False

triggers an error.
@reivilibre reivilibre requested a review from a team as a code owner December 31, 2021 09:54
Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also note that the source code of Synapse suggests the return value of False triggers an error.

I'm having trouble unwrapping the many layers of code we have for these. I would have thought synapse just checks if the result is truth-y and that's why it used to work. Can you link to where an error in Synapse would happen?

@reivilibre
Copy link
Contributor Author

I'm having trouble unwrapping the many layers of code we have for these

I have to say I do relate to this statement. I've never seen a more confusing module system, though maybe I'm just too used to seeing this kind of thing in Java. 😖

Related lines:

Out of interest, check_3pid_auth has the same set-up, but the LDAP3 module is set up properly.

@reivilibre reivilibre requested a review from clokep January 4, 2022 17:21
Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think the change looks fine, could be interesting to know if this ever worked or not, but...probably not worth delving too deep into the history.

@reivilibre reivilibre merged commit e6ae805 into main Jan 5, 2022
@reivilibre reivilibre deleted the rei/sma_checkauth_fix branch January 5, 2022 10:03
@reivilibre reivilibre linked an issue Feb 23, 2022 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Not working with latest Synapse
2 participants