WSO2 API 管理器 - 如何使用消费者密钥和获取用户配置文件分泌 [英] WSO2 API Manager - How to get User profile with consumer key & secrete

查看:26
本文介绍了WSO2 API 管理器 - 如何使用消费者密钥和获取用户配置文件分泌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何通过 wso2am 提供的带有消费者密钥和秘密的 rest API 获取用户配置文件(包括用户名和密码)?因为我们不存储用户名 &密码在客户端,但只有消费者密钥和秘密,通常我们必须提供 4 个参数(用户名、密码、消费者密钥和消费者秘密)来获取访问令牌.所以我们只想使用消费者密钥和秘密来获取访问令牌.

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.

推荐答案

//如何通过wso2am提供的rest API//

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

AFAIK,WSO2AM 没有定义这样的 API.要检索用户配置文件,您必须调用 UserProfileMgtService,这是一个管理服务.

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

密码经过哈希处理并存储,因此您无法检索它们.用户名和密码必须由用户/客户端提供.您需要从用户请求中获取该信息,然后将其嵌入到用户密码 + id 中..

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

这篇关于WSO2 API 管理器 - 如何使用消费者密钥和获取用户配置文件分泌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆