I’m running a jupyterhub using AWS Cognito for authentication. I set it up using a helm chart as follows:
config: JupyterHub: authenticator_class: generic-oauth OAuthenticator: oauth_callback_url: https://<mydomain>/hub/oauth_callback client_id: <myappclientid> client_secret: <myappclientsecret> allow_all: True GenericOAuthenticator: admin_users: - admin_dev login_service: AWS Cognito username_claim: username authorize_url: https://<myappclient>.auth.us-east-2.amazoncognito.com/oauth2/authorize token_url: https://<myappclient>.auth.us-east-2.amazoncognito.com/oauth2/token userdata_url: https://<myappclient>.auth.us-east-2.amazoncognito.com/oauth2/userInfo
When I go to my domain, it presents a button “Sign in with AWS Cognito”. This redirects me to a form at https://<myappclient>.auth.us-east-2.amazoncognito.com/login
to enter my cognito username and password, and it returns to https://<mydomain>/user/<username>
and I’m good to go. Great! I click log out, it returns me to the jupyter hub landing page, showing the “Sign in with AWS Cognito” button. If I click that button, it takes me directly into https://<mydomain>/user/<username>
using the previously used username, it doesn’t need me to authenticate again, or give me the option to log in as a different user. I have to manually clear cookies in my browser before I can try again. I thought logging out should take care of this already. What am I missing, how can I make this happen?
P.S. Accessing the jupyterhub in Edge and in Firefox, usually using a private window.