Authorization
header of the request. The token is signed with a secret key using a strong encryption algorithm, and the server verifies the signature to ensure the token is valid and to identify the caller.
Authorization
header of every request to the API which requires authentication.
The Authorization
header should be formatted as follows:
{jwt_token}
is the actual JWT token string.
The server will validate the token and extract the user’s identity and permissions from it. If the token is valid, the request will be processed; if not, a “401 Unauthorized” error response will be returned indicating that authentication failed.
.
). The header and payload are Base64Url encoded JSON objects, while the signature is used to verify the integrity of the token. You can extract the payload to glean useful information such as:
aud
: The ShipStream WMS instance base url for which the token is intended.exp
: The expiration time of the token, typically a Unix timestamp.iat
: The issued-at time of the token, also a Unix timestamp.exp
) to ensure it is still valid.