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

User-interactive auth API doesn't work #11

Open
KB1RD opened this issue Aug 20, 2020 · 0 comments
Open

User-interactive auth API doesn't work #11

KB1RD opened this issue Aug 20, 2020 · 0 comments

Comments

@KB1RD
Copy link
Contributor

KB1RD commented Aug 20, 2020

When using Corporal to manage user passwords, using the interactive auth APIs does not work.
To quote @spantaleev ,

A potential problem might be that some routes require "interactive authentication" on the Synapse side.. and you probably can't do that, because the password that you use (the one in Corporal's policy.json file) is different than the one that Synapse sees.. And Synapse thinks that your password is wrong.
During normal /login, Corporal intercepts the request, does password checking on its on, and then calls Synapse's /login with a password that Shared Secret Auth understands and allows to go through.
For these other routes requiring "interactive auth", I wonder what a good solution would be.. Maybe we should intercept such requests as well on the Corporal side, check the password, rewrite it in a way that Shared Secret Auth would understand, and then hope that Synapse uses password providers for this "interactive auth" part as well (and not just its own database; it probably does..).

spantaleev added a commit that referenced this issue Oct 1, 2020
Fixes #7 (Github Issue).

Somewhat related to #11.
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

1 participant