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

fix(oidc): Update group membership each login (and make group extraction disabled by default) #4380

Conversation

jjoyce0510
Copy link
Collaborator

Summary
This PR changes the OIDC callback logic to refresh the Groups for a user on each login from SSO. This will completely overwrite the existing groups in datahub when an oidc-managed user logs in, if and only if AUTH_OIDC_EXTRACT_GROUPS_ENABLED environment variable = true. It is set to false by default.

Status
Verified this locally against okta.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@github-actions
Copy link

Unit Test Results (build & test)

  76 files  ±0    76 suites  ±0   13m 21s ⏱️ - 9m 49s
629 tests +5  570 ✔️ +6  59 💤 ±0  0  - 1 
629 runs  +4  570 ✔️ +6  59 💤 ±0  0  - 2 

Results for commit 4dda1d7. ± Comparison against base commit d474387.

@shirshanka shirshanka merged commit c713b60 into datahub-project:master Mar 11, 2022
maggiehays pushed a commit to maggiehays/datahub that referenced this pull request Aug 1, 2022
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

Successfully merging this pull request may close these issues.

2 participants