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

connector/saml: add 'FilterGroups' setting #1704

Merged
merged 1 commit into from
May 12, 2020

Conversation

srenatus
Copy link
Contributor

This should make AllowedGroups equivalent to an LDAP group filter:

When set to true, only the groups from AllowedGroups will be included in the
user's identity.

This is not the great refactoring where all the connectors use some common logic, but just another band-aid to provide some useful functionality to SAML users.


Fixes #1476

Copy link
Member

@bonifaido bonifaido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I have no issues if band-aid it everywhere, at least the business logic will be implemented beforehand since not all filters are the same IMHO.

This should make AllowedGroups equivalent to an LDAP group filter:

When set to true, only the groups from AllowedGroups will be included in the
user's identity.

Signed-off-by: Stephan Renatus <[email protected]>
@srenatus srenatus force-pushed the sr/saml/filter-allowed-groups branch from 8749756 to 4a0feaf Compare May 12, 2020 11:29
@srenatus
Copy link
Contributor Author

ℹ️ rebased

Copy link
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the "grand refactor" won't happen until Dex v3, so I guess band aid everywhere works till then.

@sagikazarmark sagikazarmark added this to the v2.24.0 milestone May 12, 2020
@sagikazarmark sagikazarmark merged commit ba723ca into dexidp:master May 12, 2020
@srenatus srenatus deleted the sr/saml/filter-allowed-groups branch May 12, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SAML: whitelist groups?
3 participants