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

Access control using google groups not working #930

Open
prashant-prodigal opened this issue Aug 7, 2023 · 4 comments
Open

Access control using google groups not working #930

prashant-prodigal opened this issue Aug 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@prashant-prodigal
Copy link

prashant-prodigal commented Aug 7, 2023

#

Bug description

Access control through google groups is not working

Expected behaviour

Users should be able to login using google SSO

Actual behaviour

Getting 500 error on user login

How to reproduce

  1. Configure the SSO using advanced settings in this doc https://tljh.jupyter.org/en/latest/howto/auth/google.html
  2. Configuration of the .py file in this step. Below is the config used:
from oauthenticator.google import GoogleOAuthenticator
c.JupyterHub.authenticator_class = GoogleOAuthenticator

c.GoogleOAuthenticator.google_service_account_keys = {'abc.com': '/opt/tljh/service_account_key.json'}
c.GoogleOAuthenticator.gsuite_administrator = {'abc.com': 'user.name'}
c.GoogleOAuthenticator.allowed_google_groups = {'abc.com': ['jupyterhub-users']}
c.GoogleOAuthenticator.admin_google_groups = {'abc.com': ['jupyterhub-admins']}
c.GoogleOAuthenticator.client_id = 'censored'
c.GoogleOAuthenticator.client_secret = 'censored'
c.GoogleOAuthenticator.hosted_domain = 'abc.com'
c.GoogleOAuthenticator.login_service = 'Google'
c.GoogleOAuthenticator.oauth_callback_url = 'https://jupyterhub.abc.com/hub/oauth_callback'

Note- I have removed the sensitive information.
3. Run sudo tljh-config reload command
4. When user try to login using Google SSO, he get 500 error. Error screenshot attached.

Your personal set up

  • OS:
    Ubuntu 22.04
  • Version(s):
    tljh latest version
Full environment
# paste output of `pip freeze` or `conda list` here
Configuration
# jupyterhub_config.py
Logs
@prashant-prodigal prashant-prodigal added the bug Something isn't working label Aug 7, 2023
@welcome
Copy link

welcome bot commented Aug 7, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@MridulS
Copy link
Collaborator

MridulS commented Aug 9, 2023

Could you look/share at logs https://tljh.jupyter.org/en/latest/troubleshooting/logs.html?
It should give you a bit more information about the error :)

@prashant-prodigal
Copy link
Author

is this configuration that i provided correct? @MridulS

@prashant-prodigal
Copy link
Author

This is resolved, we needed to enabled Google Admin SDK API in google cloud console for this, which was not mentioned in the documentation, can we add this in documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants