-
Notifications
You must be signed in to change notification settings - Fork 354
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
GitHub Oauth limit users with "authorization" mechanism similar to native authentication #391
Comments
I also have this question. I would like to use google for OAuth but I also want to restrict (whitelist) the emails that can sign up. |
I would like to know also. Looking at the docs for Oauthenticator Github
but this didn't seem to prevent other usernames for me. |
I also tried doing this via the custom config snippets
Since these are the values the Despite doing a |
In this end this was simply because tljh appears to be using the oauthenticator version that still uses the What worked:
ConfigThe working config file looked like
TestYou can test by first going to https://jupyter.yourcompany.com/hub/admin and deleting the user in question and also deleting |
@lee-hodg So if I understand you correctly unless the whitelist parameter is set with a value, TLJH assumes |
@chintanp no, in the end, setting the parameter It appears to me that tljh is using an older version of GitHubOAuthenticator, so still uses the "whitelist" parameter name and not the more modern "allowed users".....This can be confusing if you just look at their docs and try to set things up. |
TLJH indeed have an outdated version of the oauthenticator package. It will be updated by #719 but hasn't yet been updated. I'll close this issue as I see no concrete action points besides making sure to update oauthenticator as done in that PR, as well as reviewing our docs to be compliant with that upgrade. |
Hello,
Thanks for all your hardwork getting TLJH working with Github Oauth after a couple of false starts on my part users authentication works smoothly. But now I would like to limit who can authenticate to TLJH instance as I have limited resources and this is for an online class. Is there anyway to enable "authorization" similar to that of the native authentication?
e.g. The user can "sign up" with thier github account, but then they must be authorized by an admin. That way only students in the class get access to the resources. I would like to not have to be to restrictive with the cpu and ram allocations in order to keep the vm stable.
Thanks in advance,
alvin
The text was updated successfully, but these errors were encountered: