Use nbgitpuller with an OAUTH callback

I would like to let my users authenticate through OAUTH (GitHub) on JupyterHub and use nbgitpuller to load the desired repository in workspace.
However, I can’t figure how to make the callback URL work.

In the docs:

  1. Set “Authorized redirect URIs” to be your hub’s URL followed by /hub/oauth_callback . For example, https://your-jupyterhub-domain/hub/oauth_callback .

I tried to use nbgitpuller_link/hub/oauth_callback as callback URL, where nbgitpuller_link is the link given by This does not work (I get stuck on the login page). Any advice?

Ok I figured it out: the nbgitpuller URL should not be in the callback URL at all.