What is a bearer token?
A signed JWT token. The platform of Trust can validate it and communicate with any party who is able to provide such a token.
In encoded form, it looks like eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzY29w...DVs5aaf
, as you might have seen in many examples and guides. A bearer token is easy to decode, and no information is hidden because the purpose of a bearer token is to pass information signed by signature. When a signature is validated, the data can be trusted.
NOTE: Bearer token gets expired after 24 hours.
How to get a Bearer token
To obtain the bearer token:
-
After signing in to Platform of Trust
Harness
, open the developer tool in your browser by clicking the kebab menu, also known as the three dots menu.
-
Go to the Network tab and click on any Platform of Trust
Harness
component like the below one :
-
Click on Headers–> scroll down to request headers–> Authorisation
You will be able to get your Bearer token. Which you can make use in Harness API.
Bearer token is required for most of the requests in Platform of Trust. It enables an extra security level that ensures the validity and consistency of data that the platform helps to provide.