Skip to content

Commit

Permalink
Include add_2i2c_staff_user_ids... config in auth examples
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Oct 10, 2023
1 parent aad7a26 commit 2403389
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
27 changes: 15 additions & 12 deletions docs/hub-deployment-guide/configure-auth/cilogon.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,30 @@ To get the value of the key that must go in the `allowed_idp` dict for a specifi

```yaml
jupyterhub:
custom:
2i2c:
add_staff_user_ids_to_admin_users: true
add_staff_user_ids_of_type: google
hub:
config:
JupyterHub:
authenticator_class: cilogon
CILogonOAuthenticator:
oauth_callback_url: https://{{ HUB_DOMAIN }}/hub/oauth_callback
# Google and ANU's are configured as the hubs identity providers (idps)
allowed_idps:
http://google.com/accounts/o8/id:
username_derivation:
# Use the email as the hub username
username_claim: "email"
# Authorize any user with a @2i2c.org email in this idp
allowed_domains:
- "2i2c.org"
# Community specific idp - enables community members to authenticate.
# In this example, all authenticated users are authorized via the idp
# specific allow_all config.
https://idp2.anu.edu.au/idp/shibboleth:
username_derivation:
# Use the email as the hub username
username_claim: "email"
# Authorize all users in this idp
allow_all: true
username_claim: email
allow_all: true # authorize all users authenticated by the idp
# Google (or GitHub) idp - enables 2i2c admin users to authenticate.
# The basehub chart config "custom.2i2c.add_staff_user_ids..." expands
# admin_users to authorize specific 2i2c staff members.
http://google.com/accounts/o8/id:
username_derivation:
username_claim: email
Authenticator:
admin_users:
- admin@anu.edu.au
Expand Down
9 changes: 8 additions & 1 deletion docs/hub-deployment-guide/configure-auth/github-orgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ You can remove yourself from the org once you have confirmed that login is worki

```yaml
jupyterhub:
custom:
2i2c:
add_staff_user_ids_to_admin_users: true
add_staff_user_ids_of_type: github
hub:
config:
JupyterHub:
authenticator_class: github
GitHubOAuthenticator:
oauth_callback_url: https://{{ HUB_DOMAIN }}/hub/oauth_callback
allowed_organizations:
- 2i2c-org
- ORG_NAME
scope:
- read:user
Expand All @@ -90,6 +93,10 @@ You can remove yourself from the org once you have confirmed that login is worki

```yaml
jupyterhub:
custom:
2i2c:
add_staff_user_ids_to_admin_users: true
add_staff_user_ids_of_type: github
hub:
config:
JupyterHub:
Expand Down

0 comments on commit 2403389

Please sign in to comment.