예제 #1
0
        public ConfidentialClientExecutor(IServiceBundle serviceBundle, ConfidentialClientApplication confidentialClientApplication)
            : base(serviceBundle)
        {
            ClientApplicationBase.GuardMobileFrameworks();

            _confidentialClientApplication = confidentialClientApplication;
        }
        [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]  // hide confidential client on mobile
#endif
        public static IConfidentialClientApplicationExecutor CreateConfidentialClientExecutor(
            ConfidentialClientApplication confidentialClientApplication)
        {
            ClientApplicationBase.GuardMobileFrameworks();

            IConfidentialClientApplicationExecutor executor = new ConfidentialClientExecutor(
                confidentialClientApplication.ServiceBundle,
                confidentialClientApplication);

            return(executor);
        }
예제 #3
0
 /// <summary>
 /// Creates a configuration using the default key management - an RSA key will be created in memory and rotated every 8h.
 /// Uses <see cref="HttpMethod"/>, <see cref="HttpHost"/> etc. to control which elements of the request should be included in the POP token.
 /// </summary>
 /// <remarks>
 /// See https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#page-3 for details about signed HTTP requests.
 /// </remarks>
 public PoPAuthenticationConfiguration()
 {
     ClientApplicationBase.GuardMobileFrameworks();
 }