You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/12/21 20:34:19 UTC

[GitHub] [superset] amitsharma10 opened a new issue #17844: OAuth2: Sending custom headers to access_token_url

amitsharma10 opened a new issue #17844:
URL: https://github.com/apache/superset/issues/17844


   I am following this link for OAuth integration of superset - https://superset.apache.org/docs/installation/configuring-superset
   
   As per following config I would expect to pass header XYZ to access_token_url. However, this is not happening. How can I ensure that my custom headers are passed to the access_token_url end point. 
   
   `AUTH_TYPE = AUTH_OAUTH
   OAUTH_PROVIDERS = [
       {   'name':'egaSSO',
           'token_key':'access_token', # Name of the token in the response of access_token_url
           'icon':'fa-address-card',   # Icon for the provider
           'remote_app': {
               'client_id':'myClientId',  # Client Id (Identify Superset application)
               'client_secret':'MySecret', # Secret for this Client Id (Identify Superset application)
               'client_kwargs':{
                   'scope': 'read'               # Scope for the Authorization
               },
               'access_token_method':'POST',    # HTTP Method to call access_token_url
               'access_token_params':{        # Additional parameters for calls to access_token_url
                   'client_id':'myClientId'
               },
               'access_token_headers':{    # Additional headers for calls to access_token_url
                   'XYZ': 'mock-header xyz'
               },
               'api_base_url':'https://myAuthorizationServer/oauth2AuthorizationServer/',
               'access_token_url':'https://myAuthorizationServer/oauth2AuthorizationServer/token',
               'authorize_url':'https://myAuthorizationServer/oauth2AuthorizationServer/authorize'
           }
       }
   ]
   
   # 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 = "Public"`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] mandeeplohan commented on issue #17844: OAuth2: Sending custom headers to access_token_url

Posted by GitBox <gi...@apache.org>.
mandeeplohan commented on issue #17844:
URL: https://github.com/apache/superset/issues/17844#issuecomment-1000347105


   is your sso working by any chance? Even i am stuck on sso oauth


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] amitsharma10 commented on issue #17844: OAuth2: Sending custom headers to access_token_url

Posted by GitBox <gi...@apache.org>.
amitsharma10 commented on issue #17844:
URL: https://github.com/apache/superset/issues/17844#issuecomment-1000423613


   @mandeeplohan no it is not yet working and I haven't received any help from the superset community yet.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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