简体   繁体   English

wso2 apim - 二级用户存储中用户的令牌 api 问题

[英]wso2 apim - token api issue for users in secondary user store

The WSO2 APIM version is 3.2.0. WSO2 APIM 版本为 3.2.0。

Created a JBDC secondary userstore opera in WSO2 APIM and added some users say user1 .opera APIM 中创建了一个 JBDC 二级用户存储操作,并添加了一些用户说user1

There was an application created in devportal - GUI_APP在 devportal 中创建了一个应用程序 - GUI_APP

When I try to access the token API with the user in opera, I'm getting the below error.当我尝试使用 opera 中的用户访问令牌 API 时,出现以下错误。
"Users in the tenant domain: opera do not have access to application admin_GUI_APP_PRODUCTION"

API details below: API 详细信息如下:

Request URL:请求 URL:
https://{APIM_IP}:8243/token https://{APIM_IP}:8243/token

Request Method:请求方法:
POST邮政

Request Headers:请求标头:
Content-Type:application/x-www-form-urlencoded内容类型:application/x-www-form-urlencoded
Authorization:Basic (base64 encoded key:secret of GUI_APP)授权:基本(base64 编码密钥:GUI_APP 的秘密)

Request Body:请求正文:
grant_type:password授予类型:密码
username:user1@opera用户名:user1@opera
password:{pwd}密码:{pwd}

Kindly let me know what change needs to be done, to get the token for users in secondary user store.请让我知道需要进行哪些更改,以获取辅助用户存储中用户的令牌。

The user store domain should be prepended to the username in the following format.用户存储域应按以下格式添加到用户名之前。 The @ symbol is used to append the tenant domain to the username. @符号用于 append 租户域到用户名。

UserStoreDomain/Username

Also, it is not mandatory to prepend the user store domain.此外,不必预先添加用户存储域。 When the user store domain is not prepended, it will first search the username in the PRIMARY and then search for all the secondary user stores.当用户存储域没有前置时,它会先在 PRIMARY 中搜索用户名,然后再搜索所有的二级用户存储。

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

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