Exchanges an external identity credential for renewable Nebius access tokens.
A string input is a credential file path, not a credential value. The file
is read again for each exchange. When you supply a reader, also supply the
target serviceAccountId.
Returns a JSON-safe value for logs.
Creates a renewable federated-credentials flow.
Pass a FederatedCredentialsTokenRequester when you already
assembled the exchange request source. Pass a
FederatedCredentialsReader with serviceAccountId to let this
class assemble it.
Optionalopts: {OptionalinitialRetryTimeoutMs?: numberInitial renewal backoff, in milliseconds.
OptionallifetimeSafeFraction?: numberFraction of token lifetime to wait before proactive renewal.
Optionallogger?: LoggerOptional destination for diagnostic events.
OptionalmaxRetries?: numberMaximum total authentication attempts for one receiver. Defaults to 2.
OptionalmaxRetryTimeoutMs?: numberMaximum renewal backoff, in milliseconds.
Optionalmetrics?: AuthMetricsInputOptional authentication metrics destination.
OptionalrefreshRequestTimeoutMs?: numberDefault token-exchange request budget, in milliseconds.
It applies to foreground and background renewal when the caller does not supply a synchronous override.
OptionalretryTimeoutExponent?: numberMultiplier for exponential renewal backoff.
Optionalsdk?: SDKInterface | Promise<SDKInterface> | nullSDK used for the token-exchange RPC.
A prebuilt bearer must receive this SDK explicitly.
OptionalserviceAccountId?: string | nullTarget service-account ID. Required when the input is a credential reader.
Readonly$typeContains the fully qualified runtime type name.
Returns the provider name for authorization metrics.
Returns the stable credential name used by file-backed token caches.
Most bearers do not have a name. Wrappers can add one with NamedBearer.
Returns the wrapped bearer.
Returns a JSON-safe value for logs.
Stops owned background work and closes the wrapped bearer.
OptionalgraceMs: numberCreates a token receiver.
Sets or clears the SDK used for token exchange.
Exchanges an external identity credential for renewable Nebius access tokens.
A string input is a credential file path, not a credential value. The file is read again for each exchange. When you supply a reader, also supply the target
serviceAccountId.Example: Use a rotating workload credential file
Close the SDK during shutdown to stop background renewal.