Skip to main content

DefaultParallelModelAuthenticationOptions class

Defines authentication, API endpoint, timeout and token refresh settings for the ParallelModel SDK.

public sealed class DefaultParallelModelAuthenticationOptions

Public Members​

namedescription
DefaultParallelModelAuthenticationOptions()The default constructor.
AuthBaseUri { get; set; }Gets or sets the base URI of the authentication API. Defaults to https://api.parallelmodel.io/auth/.
AutoRefreshToken { get; set; }Gets or sets whether cached access tokens become unusable at the proactive refresh threshold rather than at effective expiration. Defaults to true.
ClientId { get; set; }Gets or sets the OAuth client identifier.
ClientSecret { get; set; }Gets or sets the OAuth client secret used during token exchange.
CoreBaseUri { get; set; }Gets or sets the base URI of the core API. Defaults to https://api.parallelmodel.io/core/.
GrantType { get; set; }Gets or sets the OAuth grant type sent during token exchange. Defaults to client_credentials.
MaxRetries { get; set; }Gets or sets the maximum number of retries for eligible request failures. Defaults to three and must be between zero and ten.
RefreshBeforeExpiry { get; set; }Gets or sets the requested proactive token refresh interval before expiration. Defaults to one minute.
Region { get; set; }Gets or sets the region sent in the X-ParallelModel-Region request header.
RetryOnUnauthorized { get; set; }Gets or sets the configured preference for retrying unauthorized requests. Defaults to true.
Timeout { get; set; }Gets or sets the timeout applied to authentication operations. Defaults to 30 seconds.

See Also​