简体   繁体   English

从WSO2 Api Manager检索用户访问令牌

[英]Retrieve user access TOKEN from WSO2 Api Manager

I have a problem with retrieving the end-user access token from wso2, I need it to invoke the API that retrieves the list of all applications in the Wso2 Api Manager Store. 我从wso2检索最终用户访问令牌时遇到问题,我需要它来调用API,以检索Wso2 Api Manager存储中所有应用程序的列表。 I did a research on this site: https://docs.wso2.com/display/AM210/apidocs/store/#!/operations#ApplicationCollection#applicationsGet , but I don't know how I can generate user token (not application token). 我在以下站点上进行了研究: https : //docs.wso2.com/display/AM210/apidocs/store/#!/ operations#ApplicationCollection#applicationsGet,但我不知道如何生成用户令牌(不是应用程序令牌)。

On the other side I found the temporary solution, that returns a list of all applications invoking the API login, and then API that returns the app list found on this link: https://docs.wso2.com/display/AM210/Store+APIs , but it shows me only how to do it with a session authentication, NOT with JWT token auth. 在另一方面,我找到了临时解决方案,该解决方案返回所有调用API登录的应用程序的列表,然后返回返回此链接上找到的应用程序列表的API: https : //docs.wso2.com/display/AM210/Store + APIs ,但是它仅向我展示如何使用会话身份验证,而不是JWT令牌身份验证。

thanks in advance. 提前致谢。

Please follow the getting started guide[1]. 请遵循入门指南[1]。 For a token generation, you need client id and secret. 为了生成令牌,您需要客户端ID和密码。 To get that you need to register an application. 为此,您需要注册一个应用程序。

[1] - https://docs.wso2.com/display/AM210/apidocs/store/#guide [1] -https://docs.wso2.com/display/AM210/apidocs/store/#guide

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM