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. |
---|