# Publish to Tableau Server with SSO

**URL:** <https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087>\
**Category:** KNIME Extensions\
**Tags:** tableau\
**Created:** [August 13, 2020, 3:48pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087 "2020-08-13T15:48:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvanB](https://forum-cdn.knime.com/user_avatar/forum.knime.com/evanb/32/47851_2.png) [@EvanB](https://forum.knime.com/u/EvanB)\
**Post date:** [August 13, 2020, 3:48pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/1 "2020-08-13T15:48:38Z")

</div>

Hey all. Quandary for you.

I am trying to publish to Tableau Server, and the documentation uses username/password, but we have SSO authentication.

I have created an API token on our server and put this in the Publish to Tableau Server node, but it keeps telling me “invalid authentication credentials provided”.

Is there something I am missing???

---

<div class="post-metadata">

**Author:** ![bwilhelm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bwilhelm/32/444_2.png) [@bwilhelm](https://forum.knime.com/u/bwilhelm)\
**Post date:** [August 17, 2020, 9:13am UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/2 "2020-08-17T09:13:00Z")

</div>

Hi @EvanB,

How exactly did you generate the “API token”? Did you generate a “Personal Access Token” as described [here](https://help.tableau.com/current/server/en-us/security_personal_access_tokens.htm)? The “Send to Tableau Server” node does not support these kind of “Personal Access Tokens” yet.  
The “Authentication Token” lets you configure a token that is directly used to make the API calls.

---

<div class="post-metadata">

**Author:** ![mkeller](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@mkeller](https://forum.knime.com/u/mkeller)\
**Post date:** [September 23, 2020, 8:46pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/3 "2020-09-23T20:46:47Z")

</div>

Hi, @bwilhelm , if Knime doesn’t support the Tableau Server Personal Access Tokens yet, how can I create a Tableau server token that Knime does support?

---

<div class="post-metadata">

**Author:** ![bwilhelm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bwilhelm/32/444_2.png) [@bwilhelm](https://forum.knime.com/u/bwilhelm)\
**Post date:** [September 24, 2020, 7:06am UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/4 "2020-09-24T07:06:11Z")

</div>

Hi @mkeller,  
Welcome to the KNIME Forum! Some Tableau Users have special authentication setups where they get this token (and authentication via username and password is not possible). Please use the username and password authentication if this is possible for you.  
Optaining the token manually is a bit more involved. You would need to make REST calls to the Tableau server using your “Personal Access Token” to get a response with the “Authentication Token” as described [here](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm). Please let me know if you need to do this and I will lookup the details and help you to set it up.

---

<div class="post-metadata">

**Author:** ![mkeller](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@mkeller](https://forum.knime.com/u/mkeller)\
**Post date:** [October 27, 2020, 5:36pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/5 "2020-10-27T17:36:36Z")

</div>

@bwilhelm , the username and password gives the following error message:

javax.ws.rs.ProcessingException: javax.net.sll.SSLHandshakeException: SSL HandshakeException invoking https://\<[mycompanysserver.com](http://mycompanysserver.com)\>/api/2.8/auth/signin: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Does Knime not support Tableau Server using OpenID Connect authentication?

---

<div class="post-metadata">

**Author:** ![bwilhelm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bwilhelm/32/444_2.png) [@bwilhelm](https://forum.knime.com/u/bwilhelm)\
**Post date:** [October 28, 2020, 11:36am UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/6 "2020-10-28T11:36:02Z")

</div>

Hi @mkeller,

We do not support OpenID Connect in the Tableau nodes yet.

However, the error that you got indicates that the SSL certificate of the Tableau Server could not be verified. Please see this post: [Send to Tableau server node error](https://forum.knime.com/t/send-to-tableau-server-node-error/24537).

---

<div class="post-metadata">

**Author:** ![mkeller](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@mkeller](https://forum.knime.com/u/mkeller)\
**Post date:** [November 30, 2020, 8:49pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/7 "2020-11-30T20:49:26Z")

</div>

Thanks, we’ve resolved that error by importing the cert and now I am getting the following error:

org.knime.ext.tableau.hyperapi.sendtable.api.RestApiConnection$TsResponseException: Signin Error: Error signing in to Tableau Server (Error code: 401001).

What can I do about this one?

---

<div class="post-metadata">

**Author:** ![bwilhelm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bwilhelm/32/444_2.png) [@bwilhelm](https://forum.knime.com/u/bwilhelm)\
**Post date:** [December 1, 2020, 8:41am UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/8 "2020-12-01T08:41:23Z")

</div>

Hi @mkeller,

The error code states ([source](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#sign_in)):

> The credentials (name or password, or personal access token name or secret) are invalid for the specified site, or the site content URL is invalid.

I can imagine that this error code is always returned by the Tableau server if a sign-in is requested and OpenID Connect is configured. Sadly, I cannot verify this quickly because we have no Tableau Server with OpenID Connect available right now.  
If you don’t use OpenID Connect, check your username, password and site content URL.

---

<div class="post-metadata">

**Author:** ![EvanB](https://forum-cdn.knime.com/user_avatar/forum.knime.com/evanb/32/47851_2.png) [@EvanB](https://forum.knime.com/u/EvanB)\
**Post date:** [February 2, 2021, 2:57pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/9 "2021-02-02T14:57:58Z")

</div>

Unfortunately, anything that requires IT support is not doable. ☹

Is there a way to add an External Browser authentication???

---

<div class="post-metadata">

**Author:** ![davekalpak](https://forum-cdn.knime.com/user_avatar/forum.knime.com/davekalpak/32/474_2.png) [@davekalpak](https://forum.knime.com/u/davekalpak)\
**Post date:** [February 23, 2021, 9:25pm UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/11 "2021-02-23T21:25:04Z")

</div>

This worked for me:  
[1] Generate Personal Access Token.

[2] Install the following python modules:

- [https://anaconda.org/conda-forge/tableauserverclient](https://anaconda.org/conda-forge/tableauserverclient)

[3] Use the attached component to upload hyper files.

[Ref: hyper-api-samples/publish-hyper-file.py at main · tableau/hyper-api-samples · GitHub]

[publish\_tableau\_hyper\_knimeForum.knwf](https://forum.knime.com/uploads/short-url/yRj21zFpCk8u8Jd4xMK7L57KLbI.knwf) (18.7 KB)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [August 25, 2021, 9:25am UTC](https://forum.knime.com/t/publish-to-tableau-server-with-sso/26087/12 "2021-08-25T09:25:57Z")

</div>

Closed on August 25, 2021, 9:25am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
