ruipoliveira commented on issue #134:
URL: 
https://github.com/apache/airflow-client-python/issues/134#issuecomment-2941835517

   The issue was indeed related to authentication. By obtaining the 
access_token through the auth/token endpoint:
   
   ```
   curl -X POST https://url.dummy/auth/token \
     -H "Content-Type: application/json" \
     -d '{
       "username": "dummy",
       "password": "dummy"
   }'
   ```
   
   I was able to update the initial configuration as follows, and it now works 
correctly:
   
   
   ``` 
   configuration = airflow_client.client.Configuration(
       host="https://url.dummy";, # without api/v2
       access_token="my_access_token_from_curl"
   )
   ```
   
   Thank you all for the support! I’m closing the issue.


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