Setting up custom identity provider with support for policy based access, based on groups

4 次查看(过去 30 天)
I am setting up policy based access to my WebAppServer and want to be able to give access based on groups. Reading the documentation, it seems Azure AD has support for this. However, I have built my own identity provider as I don't want customer accounts to be used by third party. Now, my question is how group based access is constructed in the auth response from the identity provider. Is it a specific claim that is needed?

回答(1 个)

Chetan
Chetan 2023-8-25
编辑:Chetan 2023-8-25
As per my understanding you are trying to setup custom identity provider and looking for the group-based access in MATLAB WebApp Server.
For group-based access control in your Web App Server with your custom identity provider, ensure that the identity provider includes group membership information as claims in the authentication token. This can typically be done through claims like "groups" or "roles" in the token.
Example claim in the token:
{
"groups": ["Marketing", "Development"]
}
There are couple of ways to achieve this:
Role-Based Access is more about manage apps (e.g., upload/delete apps using MATLAB webapps server page)
Policy-Based Access provides fine-grain access control to certain apps (or apps under a folder), such as run/modify apps.
Upon receiving the token, your Web App Server should check the "groups" claim to determine the user's group memberships. You can then map these groups to specific roles or policies within your application. For instance, you can refer the following segment form the webapps_authn.json configuration:
  • for role based access control:
{
"id": "User",
"description": "A User can only execute web apps.",
"groups": {
"memberOf": ["CN=Marketing,OU=Mail,DC=ldap,DC=myboston,DC=com", "CN=Development,OU=Mail,DC=ldap,DC=myboston,DC=com"]
}
}
  • for policy - based access control:
"subject": {
"memberOf": ["CN=Marketing,OU=Mail,DC=ldap,DC=myboston,DC=com", "CN=Development,OU=Mail,DC=ldap,DC=myboston,DC=com"]
}
You can refer to the following documentations for more details:
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 MATLAB Web App Server 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by