public virtual void TestAuthenticationAnonymousAllowedWithPost() { AuthenticatorTestCase auth = new AuthenticatorTestCase(); AuthenticatorTestCase.SetAuthenticationHandlerConfig(GetAuthenticationHandlerConfiguration (true)); auth._testAuthentication(new PseudoAuthenticator(), true); }
public virtual void TestAuthenticationAnonymousDisallowed() { AuthenticatorTestCase auth = new AuthenticatorTestCase(); AuthenticatorTestCase.SetAuthenticationHandlerConfig(GetAuthenticationHandlerConfiguration (false)); auth._testAuthentication(new PseudoAuthenticator(), false); }
/// <exception cref="System.Exception"/> public virtual void TestFallbacktoPseudoAuthenticatorAnonymous() { AuthenticatorTestCase auth = new AuthenticatorTestCase(useTomcat); Properties props = new Properties(); props.SetProperty(AuthenticationFilter.AuthType, "simple"); props.SetProperty(PseudoAuthenticationHandler.AnonymousAllowed, "true"); AuthenticatorTestCase.SetAuthenticationHandlerConfig(props); auth._testAuthentication(new KerberosAuthenticator(), false); }