WSO2 API Manager - How to get User profile with consumer key & secrete

感情迁移 提交于 2019-12-12 02:25:25

问题


Does anyone know how to get the user profile (including username & password) via rest API provided by wso2am with consumer key and secrete? Because we don't store username & password in client side but only consumer key and secrete, and generally, we have to provide 4 parameters (username,password,consumer key and consumer secrete) to get access token. so we want to use only consumer key and secrete to get access token.


回答1:


// how to get the user profile (including username & password) via rest API provided by wso2am//

AFAIK ,there is no such API defined at WSO2AM.To retrieve userprofiles,you have to call UserProfileMgtService , which is an admin service.

Passwords are hashed and stored, so you cannot retrieve them. Username and password has to be provided by the user/client. You need to get that from the user request, and embed that with conusmer secret+id..



来源:https://stackoverflow.com/questions/18394926/wso2-api-manager-how-to-get-user-profile-with-consumer-key-secrete

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!