Class HttpConnectionResolverAuthenticationOptions
- Namespace
- Cratis.Arc.Connections
- Assembly
- Cratis.Arc.Core.dll
Represents how HttpConnectionResolver authenticates to its endpoint with a bearer token.
public class HttpConnectionResolverAuthenticationOptions
- Inheritance
-
HttpConnectionResolverAuthenticationOptions
- Inherited Members
- Extension Methods
Constructors
HttpConnectionResolverAuthenticationOptions()
public HttpConnectionResolverAuthenticationOptions()
Properties
ClientId
Gets or sets the client id. With ClientCredentials it identifies the client; with AzureCredential it selects a user-assigned managed identity or the workload identity application.
public string? ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the client secret, used with ClientCredentials.
public string? ClientSecret { get; set; }
Property Value
Credential
Gets or sets the AzureCredentialType, used with AzureCredential. Defaults to ManagedIdentity.
public AzureCredentialType Credential { get; set; }
Property Value
RefreshMargin
Gets or sets how long before it expires a token is renewed. Defaults to five minutes.
public TimeSpan RefreshMargin { get; set; }
Property Value
Scope
Gets or sets the scope the token is requested for, for instance api://<app-id>/.default.
public string? Scope { get; set; }
Property Value
TokenEndpoint
Gets or sets the OAuth 2.0 token endpoint, used with ClientCredentials.
public Uri? TokenEndpoint { get; set; }
Property Value
- Uri
Type
Gets or sets the HttpConnectionResolverAuthenticationType. Defaults to None.
public HttpConnectionResolverAuthenticationType Type { get; set; }