예제 #1
0
        public ClientSecretCredential(string tenantId, string clientId, string clientSecret, IdentityClientOptions options)
        {
            _tenantId     = tenantId;
            _clientId     = clientId;
            _clientSecret = clientSecret;

            _client = (options != null) ? new IdentityClient(options) : IdentityClient.SharedClient;
        }
예제 #2
0
        protected AzureCredential(IdentityClientOptions options)
        {
            options = options ?? new IdentityClientOptions();

            _client = new IdentityClient(options);

            _refreshBuffer = options.RefreshBuffer;
        }
        public ClientCertificateCredential(string tenantId, string clientId, X509Certificate2 clientCertificate, IdentityClientOptions options)
        {
            _tenantId = tenantId ?? throw new ArgumentNullException(nameof(tenantId));

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

            _clientCertificate = clientCertificate ?? throw new ArgumentNullException(nameof(clientCertificate));

            _client = (options != null) ? new IdentityClient(options) : IdentityClient.SharedClient;
        }
        public ManagedIdentityCredential(string clientId = null, IdentityClientOptions options = null)
        {
            _clientId = clientId;

            _client = (options != null) ? new IdentityClient(options) : IdentityClient.SharedClient;
        }