问题
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