Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Change password / realm scope #338

Open
PetrSnobelt opened this issue Jun 14, 2016 · 1 comment
Open

Change password / realm scope #338

PetrSnobelt opened this issue Jun 14, 2016 · 1 comment

Comments

@PetrSnobelt
Copy link

PetrSnobelt commented Jun 14, 2016

Hello, I try to implement change user's password functionality in my app.
I try use patch route /v1/user/:userid/password, but when I try use it, it return 'Forbidden'.

When I look at the sources, it looks like token should have 'realm' scope
https://github.com/anvilresearch/connect/blob/master/routes/rest/v1/users.js#L25

But when I register new user (which don't have 'authority' role) I am not able to obtain access token with realm scope. If I log-in using account with authority role with same config - token with realm scope is returned

I use anvil-connect.js to get access token.

What could be wrong?

Thanks

@PetrSnobelt
Copy link
Author

If I understand it correctly, there are these routes for administrator and not for the user.
If so, what is recommended way for user to change password?

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

No branches or pull requests

1 participant