question

Upvotes
Accepted
36 4 6 12

TRTH token

Hi,
I have some questions about the token generated to use TRTH APIs.

Is there a limit of concurrent live tokens? We have around 30 processes that create their own token. Would it be better to share one token ?

We also have a test environment where we run unit tests. With trth the tests generate a temporary token. Is it going to invalidate past tokens?

thanks

Alvise

tick-history-rest-apitoken
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
13.7k 26 8 12

@alvise.susmel,

  • You can create as many tokens as you want, as often as you want, there is no limit.
  • You can create a mechanism to share a token among your 30 processes, but it is not obligatory, they can each use their own token.
  • A token does not invalidate a prior token, each token is independent, and remains valid 24 hours.

For additional details, see the Tick History 11.1 REST API user guide, chapter 4.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
36 4 6 12

Thanks Christianan. I've just created a system to share the token using redis. In this way it's a bit cleaner.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
5 2 5 8

Thank you very much for your prompt reply

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.