Example #1
0
        internal ClientAssertionCredential(string tenantId, string clientId, string clientSecret, TokenCredentialOptions options, CredentialPipeline pipeline, MsalConfidentialClient client)
        {
            TenantId = Validations.ValidateTenantId(tenantId, nameof(tenantId));

            ClientId = clientId ?? throw new ArgumentNullException(nameof(clientId));

            ClientSecret = clientSecret ?? throw new ArgumentNullException(nameof(clientSecret));

            _pipeline = pipeline ?? CredentialPipeline.GetInstance(options);

            _client = client ?? new MsalConfidentialClient(_pipeline, tenantId, clientId, clientSecret, options as ITokenCacheOptions);
        }
Example #2
0
 public MsalConfidentialClient(CredentialPipeline pipeline, string tenantId, string clientId, string clientAssertion, ITokenCacheOptions cacheOptions)
     : base(pipeline, tenantId, clientId, cacheOptions)
 {
     this.clientAssertion = clientAssertion;
 }