Skip to content

User-interactive auth API doesn't work #11

@KB1RD

Description

@KB1RD

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..).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions