GitHub user zakeer-intalent deleted a comment on the discussion: How to enable 
sso login in superset!!

The values file  has 

configOverridesFiles:
  extend_timeout: extend_timeout.py
  enable_oauth: enable_oauth.py
  
  Or 
  
configOverrides: {}
extend_timeout: |
 # #Extend timeout to allow long running queries.
   SUPERSET_WEBSERVER_TIMEOUT = ...
enable_oauth: |
  from flask_appbuilder.security.manager import (AUTH_DB, AUTH_OAUTH)
  AUTH_TYPE = AUTH_OAUTH
  OAUTH_PROVIDERS = [a
      {
          "name": "google",
          "whitelist": [ os.getenv("OAUTH_WHITELIST_REGEX", "") ],
          "icon": "fa-google",
          "token_key": "access_token",
          "remote_app": {
              "client_id": os.environ.get("GOOGLE_KEY"),
              "client_secret": os.environ.get("GOOGLE_SECRET"),
              "api_base_url": "https://www.googleapis.com/oauth2/v2/";,
              "client_kwargs": {"scope": "email profile"},
              "request_token_url": None,
              "access_token_url": "https://accounts.google.com/o/oauth2/token";,
              "authorize_url": "https://accounts.google.com/o/oauth2/auth";,
              "authorize_params": {"hd": os.getenv("OAUTH_HOME_DOMAIN", "")}
          }
      }
  ]
# Map Authlib roles to superset roles
  AUTH_ROLE_ADMIN = 'Admin'
  AUTH_ROLE_PUBLIC = 'Public'
# Will allow user self registration, allowing to create Flask users from 
Authorized User
  AUTH_USER_REGISTRATION = True
# The default user self registration role
  AUTH_USER_REGISTRATION_ROLE = "Admin"
  
 How do I include CustomSsoSecurityManager 

GitHub link: 
https://github.com/apache/superset/discussions/32424#discussioncomment-12618190

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to