gmsantos commented on PR #24399:
URL: https://github.com/apache/airflow/pull/24399#issuecomment-1160204350

   @potiuk for the FAB authentication integration, it worked here using Azure 
AD as the service provider. As noted in 
https://github.com/dpgaspar/Flask-AppBuilder/issues/1861, the only change 
required was to add `server_metadata_url` to the auth configuration:
   
   ```
         OAUTH_PROVIDERS = [
           {
             "name": "azure",
             "icon": "fa-windows",
             "token_key": "access_token",
             "remote_app": {
               "client_id": os.getenv('AZURE_APP_ID'),
               "client_secret": os.getenv('AZURE_APP_SECRET'),
               "api_base_url": 
f"https://login.microsoftonline.com/{AZURE_TENANT_ID}/oauth2/v2.0";,
               "client_kwargs": {
                 "scope": "profile openid",
                 "resource": os.getenv('AZURE_APP_ID'),
               },
               "request_token_url": None,
               "access_token_url": 
f"https://login.microsoftonline.com/{AZURE_TENANT_ID}/oauth2/v2.0/token";,
               "authorize_url": 
f"https://login.microsoftonline.com/{AZURE_TENANT_ID}/oauth2/v2.0/authorize";,
               "server_metadata_url": 
f"https://login.microsoftonline.com/{AZURE_TENANT_ID}/v2.0/.well-known/openid-configuration";,
             }
           }
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to