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

REST auth using m.id.thirdparty (email) + password #101

Open
fmcd opened this issue Sep 29, 2021 · 0 comments
Open

REST auth using m.id.thirdparty (email) + password #101

fmcd opened this issue Sep 29, 2021 · 0 comments

Comments

@fmcd
Copy link

fmcd commented Sep 29, 2021

Hi, I wish to authenticate with an external system via the REST identity store backend, but the external system uses email address + password for its users (no username as such).

I have a synapse REST password provider that implements the check_3pid_auth function, so when I login at the element client using email and password on the client, the following request is sent to ma1sd

{"identifier:
{"address":"[email protected]",
"medium":"email",
"type":"m.id.thirdparty"},
"initial_device_display_name":"element.testserver.com (Firefox, Linux)",
"password":"234234",
"type":"m.login.password"}

However, this is not accepted by the rc/main/java/io/kamax/mxisd/http/undertow/handler/auth/RestAuthHandler.java, and yields the response Error M_JSON_MISSING_KEYS: Missing id or password keys

Is there some other way I should be doing this? My goal is to allow login using email+password and the automatic registration on synapse with a hashed/generated user id, if the user does not exist.

Craeckie pushed a commit to Craeckie/ma1sd that referenced this issue Dec 12, 2022
…snakeyaml-1.33

Bump snakeyaml from 1.32 to 1.33
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