You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/19 12:29:23 UTC

[GitHub] [airflow] AmarEL commented on issue #13573: Airflow Google oAuth failing with Invalid response from google on 1.10.12-python3.6

AmarEL commented on issue #13573:
URL: https://github.com/apache/airflow/issues/13573#issuecomment-762810986


   I'm using the following config for google auth for version 1.10.12
   
   ```
   [webserver]
   authenticate = True
   auth_backend = airflow.contrib.auth.backends.google_auth
   
   [google]
   auth_callback_route = /oauth2callback
   ```
   
   And there is my webserver_config.py file:
   
   ```
   OAUTH_PROVIDERS = [{
       'name': 'google',
       'token_key': 'access_token',
       'icon': 'fa-google',
       'remote_app': {
           'base_url': 'https://www.googleapis.com/oauth2/v2/',
           'request_token_params': {
               'scope': 'email profile'
           },
           'access_token_url': 'https://accounts.google.com/o/oauth2/token',
           'authorize_url': 'https://accounts.google.com/o/oauth2/auth',
           'request_token_url': None,
           'consumer_key': '<client_id_from_google>',
           'consumer_secret': '<client_secret_from_google>
       }
   }]
   ```
   
   Can you give a shot with these configs?
   


----------------------------------------------------------------
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.

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