luis-serra-ki commented on issue #12499:
URL: https://github.com/apache/airflow/issues/12499#issuecomment-808928030


   Hello guys,
   
   I'm having a similar problem. I'm running airflow on a kubernetes cluster, 
and I'm using NGINX as my ingress controller, so all my certificates are being 
provided/managed by it, and I saw that because of this, airflow are making the 
auth request with the field redirect_uri using HTTP, but on Azure side, on 
Authentication App settings there is no way to add an HTTP redirect uri.
   
   Is there any way to override the redirect_uri parameter? I tried like this 
but isn't working:
   ```
       
       OAUTH_PROVIDERS = [
         {
           "name": "azure",
           "icon": "fa-windows",
           "token_key": "access_token",
           "remote_app": {
             "client_id": os.environ.get("AZURE_APP_ID"),
             "client_secret": os.environ.get("AZURE_CLIENT_SECRET"),
             "redirect_uri" : 
"https://airflow.my-domain.com/oauth-authorized/azure";,
             "base_url": "https://graph.microsoft.com/v1.0/";,
             "request_token_params": {
               "scope": "User.read email profile",
               "resource": os.environ.get("AZURE_APPLICATION_ID"),
             },
           "request_token_url": None,
           "access_token_url": azure_authority + "/token",
           "authorize_url": azure_authority + "/authorize",
           },
         },
       ]
   ```
   
   There is any workaround for this problem?
   
   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