Describe the bug
have published datasource (PDS) using embedded oAuth authentication to database. Want to use TSC to switch those to use user name / password
for connection in datasource_connections:
new_conn_cred = TSC.ConnectionCredentials(
name = conn_username,
password = conn_pwd,
embed = True,
oauth = False
)
connection.username = conn_username
connection.password = conn_pwd
connection.embed_password = True
connection.connection_credentials = new_conn_cred
server.datasources.update_connection(datasource_items[0], connection)
the above code snippet ran fine, but extract refresh failed with "Authentication failed." error.
Downloaded the tds xml file and found
<connection authentication='oauth'
which should be
<connection authentication='Username Password'
Versions
Details of your environment, including:
- Tableau Server version (or note if using Tableau Online) 2021.1.4 (20211.21.0712.0907)
- Python version 3.6.10
- TSC library version 0.16.0
To Reproduce
See description
Results
Authentication failed.
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
Describe the bug
have published datasource (PDS) using embedded oAuth authentication to database. Want to use TSC to switch those to use user name / password
the above code snippet ran fine, but extract refresh failed with "Authentication failed." error.
Downloaded the tds xml file and found
<connection authentication='oauth'
which should be
<connection authentication='Username Password'
Versions
Details of your environment, including:
To Reproduce
See description
Results
Authentication failed.
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.