baruch-shteken opened a new issue, #25904:
URL: https://github.com/apache/airflow/issues/25904

   ### Description
   
   In Tableau Online, you can use user name and password method for REST API 
calls, [only if you don't use 
MFA](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm).
   Thus, organizations that enabled MFA in Tableau, have to use [Personal 
Access 
Tokens](https://help.tableau.com/current/online/en-us/security_personal_access_tokens.htm)
 for API calls to Tableau.
   However, [Airflow deprecated the usage of Personal Access 
Tokens](https://github.com/apache/airflow/pull/16916) in 
[airflow.providers.tableau.hooks.tableau](https://airflow.apache.org/docs/apache-airflow-providers-tableau/stable/_modules/airflow/providers/tableau/hooks/tableau.html),
 since [there is a problem](https://github.com/apache/airflow/issues/16669) 
that each time you try to open a parallel connection, the previous one would be 
invalidated.
   
   ### Use case/motivation
   
   I would like to use the Personal Access Token method for API calls to 
Tableau.
   I see 2 solutions that might be applicable:
   1. Create 1 connection to Tableau and use that for all API calls from 
Airflow in a specific timeframe. I am not sure if this is feasible
   2. Create a pool of tokens and for each connection to Tableau from Airflow, 
create a new connection id with 1 of the unused tokens. I saw that on Airflow, 
you can [generate connection on the 
fly](https://airflow.apache.org/docs/apache-airflow/1.10.14/howto/connection/index.html#generating-a-connection-uri).
 I am not sure how to handle the token pool though
   
   I am open to other solutions and guidance. Also, I am not sure I can submit 
a PR since I have never contributed to an open source project but I can try.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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