Class FormAuthenticationBase
- java.lang.Object
-
- org.wildfly.elytron.web.undertow.common.AbstractHttpServerMechanismTest
-
- org.wildfly.elytron.web.undertow.common.FormAuthenticationBase
-
public abstract class FormAuthenticationBase extends AbstractHttpServerMechanismTest
Test case to test HTTP FORM authentication where authentication is backed by Elytron.- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description UndertowServerserver
-
Constructor Summary
Constructors Modifier Constructor Description protectedFormAuthenticationBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbareHttpClientRunner(String initialPath, Predicate<String> redirectVerifier)Common method for tests using theBareHttpClientimplementation.protected abstract UndertowServercreateUndertowServer()protected org.wildfly.security.auth.server.SecurityDomaindoCreateSecurityDomain()protected StringgetMechanismName()voidtestDefaultURLBare()voidtestEncodedPathBare()voidtestEncodedQueryStringBare()voidtestEncodedQueryStringPlusBare()voidtestFormSuccessfulAuthentication()voidtestLogout()voidtestNonEncodedPathBare()voidtestNonEncodedQueryStringBare()voidtestNonEncodedQueryStringPlusBare()voidtestRedirectLoginPage()voidtestSessionIdentityCache()-
Methods inherited from class org.wildfly.elytron.web.undertow.common.AbstractHttpServerMechanismTest
assertLoginPage, assertSuccessfulResponse, assertSuccessfulUnconstraintResponse, getHttpServerAuthenticationMechanismFactory, getSecurityDomain, installProvider, removeProvider
-
-
-
-
Field Detail
-
server
public UndertowServer server
-
-
Method Detail
-
testFormSuccessfulAuthentication
public void testFormSuccessfulAuthentication() throws Exception- Throws:
Exception
-
bareHttpClientRunner
public void bareHttpClientRunner(String initialPath, Predicate<String> redirectVerifier) throws Exception
Common method for tests using theBareHttpClientimplementation.- Parameters:
initialPath-redirectVerifier-- Throws:
Exception
-
testEncodedQueryStringBare
public void testEncodedQueryStringBare() throws Exception- Throws:
Exception
-
testEncodedQueryStringPlusBare
public void testEncodedQueryStringPlusBare() throws Exception- Throws:
Exception
-
testNonEncodedQueryStringPlusBare
public void testNonEncodedQueryStringPlusBare() throws Exception- Throws:
Exception
-
testNonEncodedQueryStringBare
public void testNonEncodedQueryStringBare() throws Exception- Throws:
Exception
-
getMechanismName
protected String getMechanismName()
- Specified by:
getMechanismNamein classAbstractHttpServerMechanismTest
-
doCreateSecurityDomain
protected org.wildfly.security.auth.server.SecurityDomain doCreateSecurityDomain() throws Exception- Specified by:
doCreateSecurityDomainin classAbstractHttpServerMechanismTest- Throws:
Exception
-
createUndertowServer
protected abstract UndertowServer createUndertowServer() throws Exception
- Throws:
Exception
-
-