Azure.Identity.SharedTokenCacheCredentialOptions
public class SharedTokenCacheCredentialOptions : TokenCredentialOptions, ISupportsTokenCachePersistenceOptions, ISupportsDisableInstanceDiscovery, ISupportsTenantId
Options to configure the SharedTokenCacheCredential authentication.
The AuthenticationRecord captured from a previous authentication with an interactive credential, such as the InteractiveBrowserCredential or DeviceCodeCredential.
The client id of the application registration used to authenticate users in the cache.
Gets or sets the setting which determines whether or not instance discovery is performed when attempting to authenticate.
Setting this to true will completely disable both instance discovery and authority validation.
This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack.
The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority.
By setting this to true, the validation of the authority is disabled.
As a result, it is crucial to ensure that the configured authority host is valid and trustworthy."
When set to true the SharedTokenCacheCredential can be used to authenticate to tenants other than the home tenant, requiring Username and TenantId also to be specified as well.
Specifies the tenant id of the preferred authentication account, to be retrieved from the shared token cache for single sign on authentication with
development tools, in the case multiple accounts are found in the shared token.
Specifies the TokenCachePersistenceOptions to be used by the credential. Value cannot be null.
Specifies the preferred authentication account username, or UPN, to be retrieved from the shared token cache for single sign on authentication with
development tools, in the case multiple accounts are found in the shared token.
public SharedTokenCacheCredentialOptions()
Initializes a new instance of SharedTokenCacheCredentialOptions.
Initializes a new instance of SharedTokenCacheCredentialOptions.