Skip to main content

DefaultParallelModelAuthentication class

Manages OAuth access tokens, scope discovery and authentication requests for the ParallelModel SDK.

public sealed class DefaultParallelModelAuthentication

Public Members​

namedescription
AuthenticateAsync(…)Authenticates with the API by requesting a new access token, replacing any cached token.
GetScopesAsync(…)Retrieves the available OAuth scopes from the authentication API.
GetTokenAsync(…)Returns a cached access token when it is still usable, or requests a new token.
RefreshAsync(…)Requests a new access token and replaces the cached token regardless of its current validity.
RefreshIfRejectedAsync(…)Obtains a replacement token after a previously issued token has been rejected.

Remarks​

Caches access tokens and serializes token issuance and refresh operations to coordinate concurrent callers.

See Also​