Cognito Authentication for Jupyterhub Helm Chart

Hey!

I am trying to setup cognito with Jupyterhub helm chart but so far no luck. Here is my setup:

Here is my setup on cognito

I can see the button for cognito

but on clicking it, I am redirected to

Any tips for me would be highly appreciated!

Hi!

I did managed to get JupyterHub Helm Chart work together with AWS Cognito. I am a bit unsure why I didn’t work for you. Can you send all URL that you browser requested from Cognito, e.g., via Chrome’s Developer Tools? I suspect that the OAuth flows and/or OAuth scopes are insufficient.

https://<cognito-domain>.auth.eu-central-1.amazoncognito.com/oauth2/authorize?response_type=code&redirect_uri=https%3A%2F%2F<cluster-domain>%2Fjupyterhub%2Fhub%2Foauth_callback&client_id=<client-id>&state=eyJzdGF0ZV9pZCI6ICJjYWMzYzVhOWEOTQ0ZDM4YTYxOGNhYTA3M2E1MmRhYiIsICJuZXh0X3VybCI6ICIifQ%3D%3D

I finally made it work. The issue was with my cognito setup. I had to allow Authorization code grant in my cognito app cleint settings.