I’m following the JupyterHub authentication instructions (https://zero-to-jupyterhub.readthedocs.io/en/latest/authentication.html) and I can get one OAuth provider to work, but I’m stuck trying to get multiple to work at the same time (e.g. both Github and Google OAuth). If someone may share the correct way of setting multiple OAuth providers in config.yaml
please let me know.
I think the problem is the syntax I’m trying to use in my config.yaml
:
# config.yaml
auth:
- type: github
github:
clientId: "y0urg1thubc1ient1d"
clientSecret: "an0ther1ongs3cretstr1ng"
callbackUrl: "http://<your_jupyterhub_host>/hub/oauth_callback"
- type: google
google:
clientId: "yourlongclientidstring.apps.googleusercontent.com"
clientSecret: "adifferentlongstring"
callbackUrl: "http://<your_jupyterhub_host>/hub/oauth_callback"
hostedDomain: "youruniversity.edu"
loginService: "Your University"
The error I’m getting when running helm upgrade ...
is:
Error: render error in "jupyterhub/templates/proxy/deployment.yaml": template: jupyterhub/templates/proxy/deployment.yaml:26:32: executing "jupyterhub/templates/proxy/deployment.yaml" at <include (print $.Template.BasePath "/hub/secret.yaml") .>: error calling include: template: jupyterhub/templates/hub/secret.yaml:16:16: executing "jupyterhub/templates/hub/secret.yaml" at <.Values.auth.state.enabled>: can't evaluate field state in type interface {}
Error: UPGRADE FAILED: render error in "jupyterhub/templates/proxy/deployment.yaml": template: jupyterhub/templates/proxy/deployment.yaml:26:32: executing "jupyterhub/templates/proxy/deployment.yaml" at <include (print $.Template.BasePath "/hub/secret.yaml") .>: error calling include: template: jupyterhub/templates/hub/secret.yaml:16:16: executing "jupyterhub/templates/hub/secret.yaml" at <.Values.auth.state.enabled>: can't evaluate field state in type interface {}