I have an app which authenticate using OAuth2 OIDC of WSO2 IS (multitenant mode). I want to have role based authorization. Basically I configured it as below:
In Super Tenant Carbon Page:
- Create a Service Provider
- Check the SaaS option to enable auth across tenant
- In Local & Outbound Auth Conf I enabled Authorization option
- Create a custom role say RoleA and assign it to a user.
- Configure a Policy Administration and Publish it (I followed this tutorial: https://docs.wso2.com/display/IS550/Configuring+Access+Control+Policy+for+a+Service+Provider)
In Tenant B Carbon Page
- Create RoleA and assign it to a user
Result:
- User with RoleA in Super Tenant can sign in
- User with RoleA in Tenant B unable to sign in (Authorization Failed)
How to make this works?
note:
- Without authorization enabled, cross tenant authentication works.
- I have tested with existing role (Internal/subscriber) which also not working across tenant.
- I am using WSO2 IS as KM 5.5