public void SerializeIwaAuthenticationProviderOptions()
        {
            IwaAuthenticationProviderOptions s = new IwaAuthenticationProviderOptions();

            s.AuthenticationSchemes = AuthenticationSchemes.NTLM;

            IwaAuthenticationProviderOptions n = JsonConvert.DeserializeObject <IwaAuthenticationProviderOptions>(JsonConvert.SerializeObject(s));

            Assert.AreEqual(s.AuthenticationSchemes, n.AuthenticationSchemes);
        }
Exemplo n.º 2
0
 public IwaAuthenticationProvider(IOptions <IwaAuthenticationProviderOptions> options, IDirectory directory, IHttpContextAccessor httpContextAccessor, IAuthorizationContextProvider authzContextProvider)
     : base(httpContextAccessor, directory, authzContextProvider)
 {
     this.options = options.Value;
 }