User login with PAMAuthenticator

We setup the jupyterhub and wanted to login with my account how to login.

Below details added in the jupyterhub_config.py .

c.JupyterHub.authenticator_class = ‘jupyterhub.auth.PAMAuthenticator’

c.Authenticator.allowed_users = {“s.kandimalla@gmail.com”}

Is any place do I need to add my user. And we are using kubectl and docker

It is pretty unlikely that you want to use PAM if you are using kubernetes and running in containers. PAM is generally for logging into a machine where you already have usernames and passwords set up for other purposes.

If you are talking about creating accounts, it is likely that you want to use a different authenticator (external OAuth providers are what I usually recommend since there are no user credentials to manage), but you can also use e.g. native-authenticator to set up usernames and passwords in a more jupyterhub-native way.

1 Like

Thank You for your response.

May I know how to configure the OAuth provider.

That will depend on which oauth provider you choose: https://oauthenticator.readthedocs.io