internal AbstractConfidentialClientAcquireTokenParameterBuilder(IConfidentialClientApplicationExecutor confidentialClientApplicationExecutor)
     : base(confidentialClientApplicationExecutor.ServiceBundle)
 {
     ConfidentialClientApplication.GuardMobileFrameworks();
     ConfidentialClientApplicationExecutor = confidentialClientApplicationExecutor;
 }
Exemple #2
0
 /// <inheritdoc />
 public override Task <AuthenticationResult> ExecuteAsync(CancellationToken cancellationToken)
 {
     ConfidentialClientApplication.GuardMobileFrameworks();
     ValidateAndCalculateApiId();
     return(ExecuteInternalAsync(cancellationToken));
 }
        /// <summary>
        /// Constructor of client (application) credentials from a <see cref="ClientAssertionCertificate"/>
        /// </summary>
        /// <param name="certificate">contains information about the certificate previously shared with AAD at application
        /// registration to prove the identity of the application (the client) requesting the tokens.</param>
        public ClientCredential(ClientAssertionCertificate certificate)
        {
            ConfidentialClientApplication.GuardMobileFrameworks();

            Certificate = certificate;
        }
Exemple #4
0
 /// <inheritdoc />
 internal ConfidentialClientApplicationBuilder(ApplicationConfiguration configuration)
     : base(configuration)
 {
     ConfidentialClientApplication.GuardMobileFrameworks();
 }