Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config/clusters/victor/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,20 @@ basehub:
hub:
config:
CILogonOAuthenticator:
manage_groups: true
oauth_callback_url: https://staging.hub.victorproject.org/hub/oauth_callback
extraConfig:
01-test-auth.py: |
def auth_state_groups_key(auth_state):
groups = []

email = auth_state.get("cilogon_user", {}).get("email")
if email is not None:
prefix, domain = email.split("@", 1)
groups.append(f"domain::{domain}")

return groups
c.CILogonOAuthenticator.auth_state_groups_key = auth_state_groups_key
singleuser:
nodeSelector:
2i2c/hub-name: staging
Expand Down
Loading