forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support username / password auth provider
Uses a 'database' connector[1] with auth0 to provide username / password authentication. demo.cloudbank.2i2c.cloud is now moved over to this, making it easier for people to give demos. This also removes any current restrictions on who can log in, and opens it up to everyone. We add some resource restrictions to match this. Fixes 2i2c-org#403 [1]: https://auth0.com/docs/connections/database
- Loading branch information
Showing
4 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ hubs: | |
domain: demo.cloudbank.2i2c.cloud | ||
template: basehub | ||
auth0: | ||
connection: google-oauth2 | ||
connection: password | ||
config: | ||
jupyterhub: | ||
homepage: | ||
|
@@ -206,15 +206,15 @@ hubs: | |
url: http://cloudbank.org/ | ||
hub: | ||
config: | ||
Authenticator: | ||
allowed_users: &demo_users | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
admin_users: *demo_users | ||
JupyterHub: | ||
# No more than 100 users at a time | ||
active_server_limit: 100 | ||
cull: | ||
# Cull after 30min of inactivity | ||
every: 300 | ||
timeout: 1800 | ||
# No pods over 12h long | ||
maxAge: 43200 | ||
- name: lassen | ||
domain: lassen.cloudbank.2i2c.cloud | ||
template: basehub | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters