You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `SERVER_URL` is the URL of the Tableau server without subpaths. For local Tableau servers, in the form of: `https://www.MY_SERVER.com`. For Tableau Online, `https://10ax.online..tableau.com/`.
17
19
18
-
server.auth.sign_out()
19
-
```
20
+
`SITENAME` is same as the `contentURL`, or site subpath, of your full site URL. This parameter can be omitted when signing in to the Default site of a locally installed Tableau server.
21
+
22
+
Optionally, you can override the Tableau API version by adding `server.version = '<VERSION_NUMBER>'` before the `auth.signin` call.
23
+
24
+
The TSC library signs you out of Tableau Server when you exit out of the `with` block.
20
25
21
26
<divclass="alert alert-info">
22
-
<b>Note:</b> When you sign in, the TSC library manages the authenticated session for you, however it is still
23
-
limited by the maximum session length (of four hours) on Tableau Server.
27
+
<b>Note:</b> When you sign in, the TSC library manages the authenticated session for you, however the validity of the underlying
28
+
credentials token is limited by the maximum session length set on your Tableau Server (2 hours by default).
24
29
</div>
25
30
26
-
27
-
Alternatively, for short programs, consider using a `with` block:
31
+
An option to using a `with` block is to call the `Auth.sign_in` and `Auth.sign_out` functions explicitly.
0 commit comments