https://datahubproject.io logo
#integrate-tableau-datahub
Title
# integrate-tableau-datahub
r

rich-policeman-92383

02/10/2022, 7:45 AM
Hello While connecting datahub to tableau using Token results in NotSignedInError: Missing Authentication Token. The same authentication token works while using this python code Config used during ingestion:
Copy code
source:
  type: tableau
  config:
    connect_uri: <https://mytableau.com>
    site: Default
    env: "Test"
    #projects: ["default", "Project 2"]
    #username: <mailto:username@acrylio.com|username@acrylio.com>
    #password: pass
    token_name: "root"
    token_value: "fnsdifnsdkfnsdjfn8r834hr837fb"
    #ingest_tags: True
    ingest_owner: True
    #default_schema_map:
    #  mydatabase: public
    #  anotherdatabase: anotherschema
sink:
  type: "datahub-rest"
  config:
    server: "<http://localhost:8080>"
b

brainy-wall-41694

02/10/2022, 10:41 AM
Try this: token_name: root token_value: fnsdifnsdkfnsdjfn8r834hr837fb
r

rich-policeman-92383

02/14/2022, 8:34 AM
Tried your suggestion. Still getting the same error: NotSignedInError: Missing Authentication Token. You must signin first.
s

shy-parrot-64120

02/14/2022, 8:33 PM
same stuff eithe username/password or token
AFAIK there is 2step operstions 1. get session token using
auth
method with user/pass or token 2. use received session_token in api calls we’ve done like this
Copy code
auth = tsc.TableauAuth(
    username=username,
    password=password,
    site=site
)
server = tsc.Server(url, use_server_version=True)
with server.auth.sign_in(auth):
    server.datasources.<use_class_methods_stuff>
looks like you’ve used same
5 Views