0
votes

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
Then you can the client credentials grant type to get the access token.docs.wso2.com/display/AM210/Client+Credentials+Grantsenthalan

1 Answers

0
votes

// 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..