Configuration example to use Gitea as authentication provider for JupyterHub
How to use it?
- Create a folder named
gitea
next to these files. It should be readable and writeable by the user with uid=1000 gid=1000 - Built the JupyterHub image:
docker compose build
- Start the applications:
docker compose up -d
- Open Gitea with your web browser: http://localhost:3000/
- Expand the admin configuration block and define an admin user with
king
as username - Setup an OAuth client within the Gitea admin settings: https://docs.gitea.com/development/oauth2-provider Set the redirection URL to: http://localhost:8000/hub/oauth_callback
- Copy the client id and client secret
- Update these settings in
jupyterhub_config.py
- Stop the applications:
docker compose down
- Rebuild and restart:
docker compose build
docker compose up -d
- Open JupyterHub:
http://localhost:8000/
That is! You should be able to log in as king in JupyterHub.