Skip to content

Commit 8a8b33e

Browse files
Updates to readme
1 parent 465f0f8 commit 8a8b33e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ In general, anything intended as part of the Trusted Authentication workflow fro
282282

283283

284284
### Trusted authentication token requests
285+
The method `ts.session_auth_token()` is used to request the login token for a trusted auth flow. This should only be used by a back-end service, with the `secret_key` from the ThoughtSpot instance stored and accessed via a secure method (up to you how best to do this). You also must develop the process to securely determine the username of the user logged into the embedding application (see https://developers.thoughtspot.com/docs/?pageid=trusted-auth for full documentation):
286+
287+
user_from_request = get_username_from_secure_request(request)
288+
token = ts.session_auth_token(secret_key=securely_accessed_secret_key, username=user_from_request)
289+
285290
The example script `examples/trusted_authentication_with_authorization.py` shows how to combine various metadata and CRUD operations with the request for the trusted authorization login token.
286291

287292
## Additional libraries

0 commit comments

Comments
 (0)