iamshwin opened a new issue #8163: Google `Credentials` object has not 
attribute `with_subject`
URL: https://github.com/apache/airflow/issues/8163
 
 
   **Apache Airflow version**:
   master
   
   **What happened**:
   When`delegate_to` is supplied and no `key_path` or `keyfile_dict` is 
supplied (i.e. `google.auth.default()` is called) the `Credentials` object has 
no attribute `with_subject`.
   
   This is called in `get_credentials_and_project_id` in 
https://github.com/apache/airflow/blob/master/airflow/providers/google/cloud/utils/credentials_provider.py
   
   `AttributeError: 'Credentials' object has no attribute 'with_subject'`
   
   
   **What you expected to happen**:
   Correct authentication, or raise an Exception that you shouldn't be 
supplying a `delegate_to` when you haven't supplied a `key_path` or 
`keyfile_dict`.
   
   
   **How to reproduce it**:
   Supply a `delegate_to` argument in the Operator, but do not supply a 
`key_path` or `keyfile_dict`.
   
   

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


With regards,
Apache Git Services

Reply via email to