Silpa-Suresh commented on issue #12499:
URL: https://github.com/apache/airflow/issues/12499#issuecomment-732691263


   Hi @alsterman 
   
   I have tried the above configuration but I am getting the error: Invalid 
login. Please try again.
   
   The only change I made in the above configuration file (webserver_config.py) 
is:
       import os
       from airflow.configuration import conf
       from flask_appbuilder.security.manager import AUTH_OAUTH
       basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), 
os.path.pardir))
       SQLALCHEMY_DATABASE_URI = conf.get("core", "SQL_ALCHEMY_CONN")
       CSRF_ENABLED = True
       AUTH_TYPE = AUTH_OAUTH
       AUTH_USER_REGISTRATION_ROLE = "Admin"
       OAUTH_PROVIDERS = [{
           'name':'azure',
           'token_key':'access_token',
           'icon':'fa-windows',
           'remote_app': {
               'base_url': 'https://graph.microsoft.com/v1.0/',
               'request_token_params' :{'scope': 'openid'},
               
'access_token_url':'https://login.microsoftonline.com/<tenantID>/oauth2/token',
               
'authorize_url':'https://login.microsoftonline.com/<tenantID>/oauth2/authorize',
               'request_token_url': None,
               'consumer_key': '<clientID>',
               'consumer_secret': '<clientSecret>',
           }
       }]
   
   I have a different Tenant ID so I have to provide them manually. 
   
   Any great help would be appreciable.
   
   Thanks


----------------------------------------------------------------
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:
[email protected]


Reply via email to