How to disable login page?

Hi,
I want to embed Jupyter in my site’s iFrame. When user navigates to the page, my server is called and perform:

  • get user details (as user authenticated)
  • use JupyterHub REST API to create user(if not exists), get the token, start server
  • redirect the iFrame to the user’s notebook with the token
    After playing with HTTP headers all seems works fine.

I have notice that if user in my site see the iFrame url, it is possible to add some fake user in JupyterHub using UI login page, as i didn’t use any authentication the default one is activated.

My question: is it possible to deactivate UI login page, so it will be possible to add new users via REST API only?

Thank you,
Yan

JupyterHub has a NullAuthenticator:

c.JupyterHub.authenticator_class = "null"

Does that work for you?

1 Like

Looks like exactly what i need, will try.
Thanks a lot!!!

Works like a charm, thank you so much!!! :slight_smile:

1 Like