Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何通过 wso2am 提供的带有消费者密钥和秘密的 rest API 获取用户配置文件(包括用户名和密码)?因为我们在客户端不存储用户名和密码,而只存储消费者密钥和秘密,通常我们必须提供 4 个参数(用户名、密码、消费者密钥和消费者秘密)来获取访问令牌。所以我们只想使用消费者密钥和秘密来获取访问令牌。
// 如何通过 wso2am 提供的 REST API 获取用户配置文件(包括用户名和密码)//
AFAIK,在 WSO2AM 中没有定义这样的 API。要检索用户配置文件,您必须调用 UserProfileMgtService,这是一个管理服务。
密码经过哈希处理和存储,因此您无法检索它们。用户名和密码必须由用户/客户提供。您需要从用户请求中获取它,并将其嵌入到 conusmer secret+id..