4
Restrict account creation based on OIDC `groups` claim
Source: outline/outline#3296 · opened by @nick-pascucci-spire
Hi,
I'm looking to set up Outline as an internal wiki system for my company. We need to restrict access to the system to a subset of our employees, so a purely domain-based approach won't work for us. Conveniently we have an OIDC group that we can use to give access. I'm thinking that a minimal approach would be to:
1. Add an environment variable, OIDC_REQUIRE_GROUP, which can be set to the group that must be claimed by the OIDC token on user account creation.
2. Extend the existing OIDC flow to extract the groups claim and check if the required group is present there.
3. If not, throw an auth error; otherwise, proceed.
This mirrors the approach for domain-based filtering. Is this something you would consider? I'm happy to write it up and submit a PR if so.
I'm looking to set up Outline as an internal wiki system for my company. We need to restrict access to the system to a subset of our employees, so a purely domain-based approach won't work for us. Conveniently we have an OIDC group that we can use to give access. I'm thinking that a minimal approach would be to:
1. Add an environment variable, OIDC_REQUIRE_GROUP, which can be set to the group that must be claimed by the OIDC token on user account creation.
2. Extend the existing OIDC flow to extract the groups claim and check if the required group is present there.
3. If not, throw an auth error; otherwise, proceed.
This mirrors the approach for domain-based filtering. Is this something you would consider? I'm happy to write it up and submit a PR if so.
No pledges yet. Be the first to back this.
Comments
Similar requests
OIDC plugin ignores the standard "locale" claim when provisioning new accounts
1 vote · 0 comments
Use groups from OpenID Connect SSO provider
39 votes · 0 comments
Assign users to groups based on SSO-provided information
23 votes · 0 comments
Synchronizing OIDC groups with groups
1 vote · 0 comments
Support group assignment from token claims
6 votes · 0 comments
No comments yet.