Пример #1
0
        internal MsalConfidentialClientOptions(string tenantId, string clientId, CredentialPipeline pipeline)
        {
            TenantId = tenantId;

            ClientId = clientId;

            AttachSharedCache = false;

            Pipeline = pipeline;

            AuthorityHost = KnownAuthorityHosts.GetDefault();
        }
Пример #2
0
        internal MsalConfidentialClientOptions(string tenantId, string clientId, TokenCredentialOptions options)
        {
            TenantId = tenantId;

            ClientId = clientId;

            AttachSharedCache = (options as ITokenCacheOptions)?.EnablePersistentCache ?? false;

            Pipeline = CredentialPipeline.GetInstance(options);

            AuthorityHost = options?.AuthorityHost ?? KnownAuthorityHosts.GetDefault();
        }