-
Notifications
You must be signed in to change notification settings - Fork 365
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
[Generic] GET request for userdata_url built incorrectly #654
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I'm am also having problems with userdata fetching but I checked the code and it is not adding a colon, if you look at the code in oatuh2.py:620
the colon is part of the error message. The problem is there is no message added which might better explain the error. |
Thanks @mangecoeur for figuring that out! Okay, so there is an issue with userdata fetching, but unrelated to the colon added as part of an error message. I think at this point I lack information to debug the actual issue then. |
P.S I at least found out why I am not getting an error message: it seems most Oauth providers return errors as Json with some information, but in my case connecting to Microsoft ADFS based server it returns an HTTP error 401 with no body. I was able to extract the access token and test it out in an HTTP client which gives access to the WWW-Authenticate header that contains more info (error MSIS9921 in my case) |
P.P.S not sure this is the best place to store this knowledge but with the help of |
Bug description
oauthenticator keeps adding a colon(":") to the end of the specified userdata_url during OAuth authentication, causing a 403 error and ultimately leading to an Error 500 on the-littlest-jupyterhub.
Expected behaviour
OAuth authentication should be done successfully.
Actual behaviour
the-littlest-jupyterhub fails to login via GenericOAuthenticator.
How to reproduce
Your personal set up
Ubuntu 20.04
Jupyterhub v4.0.1, Python v3.8.10
Authentik v2023.4.1 (Docker) - separate server from tljh
the-littlest-jupyterhub v.latest (Docker) - separate server from SSO
Full environment
Configuration
Logs
The text was updated successfully, but these errors were encountered: