简体   繁体   English

wso2身份服务器5.3.0用户和Oauth2的多租户配置准则(如果可能)

[英]wso2 identity server 5.3.0 users and multi tenancy configuration guidelines with Oauth2 if possible

Can anyone help me out with a guideline to configure a specific Service Provider to a specific Tenant only, ie exclude all tenants from accessing the specific Service Provider. 谁能为我提供指导,以仅将特定服务提供商配置为仅特定租户,即排除所有租户访问特定服务提供商的准则。

I tried creating Service Provider using the guidelines from: https://docs.wso2.com/display/IS530/Configuring+a+Service+Provider by the way I used oauth2 with Implicit flow. 我尝试使用以下指导原则创建服务提供者: https ://docs.wso2.com/display/IS530/Configuring+a+Service+Provider,我将oauth2与隐式流结合使用了。

Then I created multiple tenant domains like: abc.com xyz.com 然后,我创建了多个租户域,例如:abc.com xyz.com

I created rob under abc.com tenant and sam under xyz.com. 我在abc.com租户下创建了rob,在xyz.com下创建了sam。

when I use url( https://localhost:9443/oauth2/authorize?response_type=token&client_id=my_client_id_was_here&redirect_uri=my_redirect_uri_was_here ) to login, login page showed up but I was ABLE to login using both rob and sam credentials. 当我使用url( https:// localhost:9443 / oauth2 / authorize?response_type = token&client_id = my_client_id_was_here&redirect_uri = my_redirect_uri_was_here )登录时,出现了登录页面,但我可以使用rob和sam凭据进行登录。

What I want is to do is to restrict users of only one specific domain/tenant to access my service provider. 我想要做的是限制只有一个特定域/租户的用户访问我的服务提供商。

Thanks in advance 提前致谢

To restrict a service provider to a specific tenant, you have to create that service provider inside that tenant. 要将服务提供商限制为特定的租户,您必须在该租户内部创建该服务提供商。 So to create a SP inside "abc.com". 因此,要在“ abc.com”内部创建一个SP。 Log into that tenant using a tenant user (rob@abc.com) and create the service provider inside it. 使用租户用户(rob@abc.com)登录到该租户,并在其中创建服务提供商。

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

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