简体   繁体   中英

IdentityServer4 and Update password using API

I have an API project and a separate project running IdentityServer4. A 3rd party app logins to IdentityServer4 and receives Access Token. Using the token 3rd party app makes calls to API project. Now 3rd party app wants an API resource (api/users/change_password) to have the ability to change password of a user by providing username, current password and new password. How can I update/change user's password from API project?

I would say that something is wrong with the requirement. To get an access token you redirect user to IDP UI . But to change a password you don't want to do it. Why? Setting password through API isn't secure. It means that 3rd party application can change user password by its own wish. It's very risky.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM