connect icon indicating copy to clipboard operation
connect copied to clipboard

Change password / realm scope

Open PetrSnobelt opened this issue 8 years ago • 1 comments

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 avatar Jun 14 '16 10:06 PetrSnobelt

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?

PetrSnobelt avatar Jun 14 '16 11:06 PetrSnobelt