Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade oauthenticator to 0.10.0 to incorporate AWS cognito #471

Closed
budgester opened this issue Nov 29, 2019 · 5 comments · Fixed by #476
Closed

Upgrade oauthenticator to 0.10.0 to incorporate AWS cognito #471

budgester opened this issue Nov 29, 2019 · 5 comments · Fixed by #476

Comments

@budgester
Copy link
Contributor

The version of oauthenticator that is currently installed is 0.8.2

https://pypi.org/project/oauthenticator/

The new version of oauthenticator is 0.10.0 and has support for aws cognito.

My guess is that it's a change on this line.
https://github.com/jupyterhub/the-littlest-jupyterhub/blob/master/tljh/installer.py#L212

Unless there is another method of setting the install packages.

@cgodkin
Copy link

cgodkin commented Dec 23, 2019

I was totally caught out by this because the installation page

http://tljh.jupyter.org/en/latest/howto/auth/awscognito.html

includes the comment

# Need to ensure oauthenticator is bumped to 0.10.0

but perhaps that's a future thing? TLJH installation following those directions still gives me oauthenticator 0.8.2 which doesn't have AWS Cognito support.

@budgester
Copy link
Contributor Author

and if not do a pip install oauthenticator>=0.10.0, but at the current time 0.8.2 is the default

@cgodkin
Copy link

cgodkin commented Dec 26, 2019

I see that I could upgrade the oauthenticator package myself, but I was just hoping someone might edit the AWS Cognito page to fix the comment (or include the "pip install..." command even). Thanks.

@cgodkin
Copy link

cgodkin commented Jan 5, 2020

Actually, I don't know how to install a newer oauthenticator into the "hub" environment so that this authenticator works. Can someone explain? I'm trying to follow the steps at

http://tljh.jupyter.org/en/latest/howto/auth/awscognito.html

Thank you very much!

@cgodkin
Copy link

cgodkin commented Jan 6, 2020

For anyone struggling with the same question, we figured it out. We added these lines into the EC2 "user data" after the curl command:

# Upgrade oauthenticator to 0.10.0 in the "hub" environment
cat > /tmp/update_oauthenticator.sh << EOF
source /opt/tljh/hub/bin/activate
pip install -U oauthenticator
EOF
/bin/bash /tmp/update_oauthenticator.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants