コード例 #1
0
 /// <summary>
 /// Creates an instance of the <see cref="OnBehalfOfCredential"/> with the details needed to authenticate with Azure Active Directory.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant (directory) Id of the service principal.</param>
 /// <param name="clientId">The client (application) ID of the service principal</param>
 /// <param name="clientSecret">A client secret that was generated for the App Registration used to authenticate the client.</param>
 /// <param name="userAssertion">The access token that will be used by <see cref="OnBehalfOfCredential"/> as the user assertion when requesting On-Behalf-Of tokens.</param>
 /// <param name="options">Options that allow to configure the management of the requests sent to the Azure Active Directory service.</param>
 public OnBehalfOfCredential(
     string tenantId,
     string clientId,
     string clientSecret,
     string userAssertion,
     OnBehalfOfCredentialOptions options)
     : this(tenantId, clientId, clientSecret, userAssertion, options, null, null)
 {
 }
コード例 #2
0
 internal OnBehalfOfCredential(
     string tenantId,
     string clientId,
     X509Certificate2 certificate,
     string userAssertion,
     OnBehalfOfCredentialOptions options,
     CredentialPipeline pipeline,
     MsalConfidentialClient client)
     : this(
         tenantId,
         clientId,
コード例 #3
0
 /// <summary>
 /// Creates an instance of the OnBehalfOfCredential with the details needed to authenticate against Azure Active Directory with the specified certificate.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant (directory) Id of the service principal.</param>
 /// <param name="clientId">The client (application) ID of the service principal</param>
 /// <param name="clientCertificate">The authentication X509 Certificate of the service principal</param>
 /// <param name="userAssertion">The access token that will be used by <see cref="OnBehalfOfCredential"/> as the user assertion when requesting On-Behalf-Of tokens.</param>
 /// <param name="options">Options that allow to configure the management of the requests sent to the Azure Active Directory service.</param>
 public OnBehalfOfCredential(string tenantId, string clientId, X509Certificate2 clientCertificate, string userAssertion, OnBehalfOfCredentialOptions options)
     : this(tenantId, clientId, clientCertificate, userAssertion, options, null, null)
 {
 }