Closed xsgao-github closed 1 year ago
Internal tracking: W-13667623
This is related to #1148, which has a Fiddler log showing why there is a 401 error/OAuth refresh token is expired error.
The log message "OAuthConfig with id custom_galaxydev does not exist" is misleading. We have two locations where those are stored, and one location didn't find it. This is expected for the custom IDP case. Based on our other discussions this was from a single use refresh token issue. We don't support those yet.
OAuthConfig with id custom_galaxydev does not exist
is just a msg
.
The error is Unknown error: Unsuccessful attempt to refresh the access token (code=13)
, and that caused the front-end error.
This error is very similar to what I reported in #1148 - the error happens because Tableau Prep Builder uses an expired refresh_token. Would you please take a look at Tableau Server as well to make this will be addressed?
About You: Name: Song Gao Company: Starburst Data
Your question:
We added external/custom OAuth config support based on the doc https://tableau.github.io/connector-plugin-sdk/docs/oauth. It works in Tableau Desktop and on Tableau Server (2023.1.2) when selecting embedded/default
OAuth Config Id
. However, if I select an external/custom OAuth config id, it errors out with the following message:In the
nativeapi_vizqlserver...
log, I can see this message:Seems like Tableau Server was able to get tokens from Galaxy but it eventually failed.
To eliminate other factors, I use the same OAuth configuration file, except that they use different
oauthConfigId
(embedded one isgalaxydev
, external one iscustom_galaxydev
).And I used the same
Client ID
andRedirect URL
when configuring them.I used Fiddler to track the requests/responses between the web client and Tableau Server, and I can tell there is no problem with calling
authorization url
andcallback/redirect url
. The error happened when the Tableau server talked to the Galaxy server viatoken url
- I saw two calls (same as I saw in Tableau Desktop), but I wasn't able to decrypt the messages or tell why Tableau Server failed.Would you please help us with this issue?