Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add roles if user is from a specific identity provider #79

Open
caspervdw opened this issue Jun 26, 2023 · 0 comments
Open

Comments

@caspervdw
Copy link
Contributor

caspervdw commented Jun 26, 2023

This is a customer request, which might be a useful addition to our functionality.

The customer has an Azure AD, which could be federated with our cognito platform. However, users still need to be invited via emails to receive roles in Lizard/3Di. Azure AD also has the option to only allow certain user groups to use a particular app client. In that case the customer would be able to control who is allowed to log into lizard via their Azure AD.

In a way, the customer is able to control authorization (in a simple yes/no fashion). What nens-auth-client needs to add, is automatically assign a preset role to everyone who authenticates from the customer's identity provider.

Setting would be something like:

NENS_AUTH_CLIENT_AUTO_PERMISSIONS = {"client-idp-name": {"client-org-id": [<roles>]}}"

The permissions JSON field ({"client-org-id": [<roles>]}) is also used in the Invitation model so it is not new.

What do you think @reinout of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant