Page Summary
-
AuthTokenFactoryprovides authorization tokens for accessing Fleet Engine via gRPC, ensuring a valid token is always available. -
The factory automatically renews expiring tokens and minimizes refreshes by re-using them until near expiration.
-
Tokens should have a minimum remaining lifetime of 5 minutes to allow requests to complete.
-
The
getTokenmethod returns a value for the "Authorization" header in gRPC calls to Fleet Engine. -
An
AuthTokenContextobject can be passed togetTokento provide additional information during token generation.
Provides authorization tokens for accessing the provider's service account on Fleet Engine via gRPC. The factory ensures that there is always a valid access token available. The access token should have a remaining minimum lifetime of at least 5 minutes to allow for requests to complete. That means that the access token factory must automatically renew expiring tokens. It should also minimize the number of token refreshes by re-using a token until its lifetime nears its end.
Public Method Summary
| abstract String |
getToken(AuthTokenContext
context)
Returns the value for an "Authorization" HTTP request header for a gRPC call to
the Fleet Engine.
|
Public Methods
public abstract String getToken (AuthTokenContext context)
Returns the value for an "Authorization" HTTP request header for a gRPC call to the Fleet Engine.
Parameters
| context | Additional information used during auth token minting. |
|---|