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

Login seems to break automatic git-pull of repo #39

Open
JuanCab opened this issue Jun 24, 2019 · 2 comments
Open

Login seems to break automatic git-pull of repo #39

JuanCab opened this issue Jun 24, 2019 · 2 comments

Comments

@JuanCab
Copy link

JuanCab commented Jun 24, 2019

I have a URL to a TLJH server of the form

https://SERVERNAME/hub/user-redirect/git-pull?repo=https://github.com/REPO&urlpath=apps/REPO/index.ipynb

This does a git pull of the REPO and then executes the index.ipynb notebook (via appmode package). This approach made the use the notebooks easy for our non-majors who just need to execute the notebooks, not understand their code.

I had to switch from an external OAuth authenticator (oauthenticator.auth0.Auth0OAuthenticator) to the default FirstUseAuthentication. This change was necessary because our campus' default email addresses are now too long to use for account names.

The problem is now, when a user logins, it just dumps them to the blank Jupyter notebook page instead of executing git-pull and appmode. In essence,

https://SERVERNAME/hub/user-redirect/git-pull?repo=https://github.com/REPO&urlpath=apps/REPO/index.ipynb

gets treated as

https://SERVERNAME/hub/

Any ideas why this doesn't work with the FirstUseAuthentication? Interestingly, once they are logged in, the git-pull URL works, but any attempt for a user who isn't already logged in to use it fails.

Juan

@consideRatio consideRatio transferred this issue from jupyterhub/the-littlest-jupyterhub Oct 25, 2021
@welcome

This comment has been minimized.

@consideRatio
Copy link
Member

I transferred this issue here from the-littlest-jupyterhub distribution repo. Could it be that query parameters are truncated somewhere when using this authenticator during the login process?

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

No branches or pull requests

2 participants