-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Personal access token method for Tableau Connection #25904
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
These are not the way to go. You need to research how Tableau Python SDK is expecting to make the connection and then add support for it from Airflow side. For example in Google we support 2 options for authentications: |
As I understand from Tableau Python SDK docs, there are no parameters for |
I looked at this issue again and when an authentication is made with a PAT then the |
feel free to submit PR if you have a fix. |
Hi, |
Hey, I am posting a comment here as, now, MFA is enforced on Tableau cloud. Thus, user/password is not available anymore for Tableau connection with a service account. |
Yeah, that is the same here. With the MFA enforced, we are using multiple tokens. But the library with the tokens is pretty broken and not even recommended by Airflow to be used. Would love to see a solution for this and ensure a better handling of this weird:
|
Yeah. submitting a PR to this one is most welcome. Also (not sure how tableau does it) but various services usually allow to generate token - usually with limited capabilities - and use it as a password when MFA is enabled (for example GitHub does it - you can authenticate with your login (which is not really needed and can be anything) and provide the token as password. Maybe (guessing) Tableau has similar feature. |
Thanks @potiuk for your comment about the generated tokens. I will check and try to keep this updated. |
I opened a PR for this with an idea, I would like to get feedback on it 🙏 |
@baruch-shteken would Sign in with JSON Web Token (JWT) work with multiple connections? |
I do think so indeed, as you could dynamically create different JWT tokens for one connected app (Airflow). |
Description
In Tableau Online, you can use user name and password method for REST API calls, only if you don't use MFA.
Thus, organizations that enabled MFA in Tableau, have to use Personal Access Tokens for API calls to Tableau.
However, Airflow deprecated the usage of Personal Access Tokens in airflow.providers.tableau.hooks.tableau, since there is a problem 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:
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?
Code of Conduct
The text was updated successfully, but these errors were encountered: