Class SSOTestBase
java.lang.Object
org.jboss.as.test.integration.web.sso.SSOTestBase
Base class for tests of web app single sign-on
- Author:
- Brian Stansberry, lbarreiro@redhat.com
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckAccessAllowed(org.apache.http.client.HttpClient httpConn, String url) static voidcheckAccessDenied(org.apache.http.client.HttpClient httpConn, String url) static org.apache.http.cookie.CookiecopyCookie(org.apache.http.cookie.Cookie toCopy, String targetServer) static org.jboss.shrinkwrap.api.spec.EnterpriseArchivestatic org.jboss.shrinkwrap.api.spec.WebArchivecreateSsoWar(String warName) static org.jboss.shrinkwrap.api.spec.WebArchivecreateSsoWar(String warName, boolean includeJBossWeb) static voidexecuteFormAuthSingleSignOnTest(URL serverA, URL serverB, org.jboss.logging.Logger log) Test single sign-on across two web apps using form based authstatic voidexecuteFormAuthSSOTimeoutTest(URL serverA, URL serverB, org.jboss.logging.Logger log) Test single sign-on across two web apps using form based auth.static voidexecuteFormLogin(org.apache.http.client.HttpClient httpConn, URL warURL) static voidexecuteLogout(org.apache.http.client.HttpClient httpConn, URL warURL) static voidexecuteNoAuthSingleSignOnTest(URL serverA, URL serverB, org.jboss.logging.Logger log) static StringgetSessionIdValueFromState(org.apache.http.client.CookieStore cookieStore) static StringprocessSSOCookie(org.apache.http.client.CookieStore cookieStore, String serverA, String serverB)
-
Field Details
-
USERNAME
- See Also:
-
PASSWORD
- See Also:
-
ROLE
- See Also:
-
-
Method Details
-
executeFormAuthSingleSignOnTest
public static void executeFormAuthSingleSignOnTest(URL serverA, URL serverB, org.jboss.logging.Logger log) throws Exception Test single sign-on across two web apps using form based auth- Throws:
Exception
-
executeNoAuthSingleSignOnTest
public static void executeNoAuthSingleSignOnTest(URL serverA, URL serverB, org.jboss.logging.Logger log) throws Exception - Throws:
Exception
-
executeFormAuthSSOTimeoutTest
public static void executeFormAuthSSOTimeoutTest(URL serverA, URL serverB, org.jboss.logging.Logger log) throws Exception Test single sign-on across two web apps using form based auth. Test that after session timeout SSO is destroyed.- Throws:
Exception
-
executeLogout
public static void executeLogout(org.apache.http.client.HttpClient httpConn, URL warURL) throws IOException - Throws:
IOException
-
checkAccessAllowed
public static void checkAccessAllowed(org.apache.http.client.HttpClient httpConn, String url) throws IOException - Throws:
IOException
-
executeFormLogin
public static void executeFormLogin(org.apache.http.client.HttpClient httpConn, URL warURL) throws IOException - Throws:
IOException
-
checkAccessDenied
public static void checkAccessDenied(org.apache.http.client.HttpClient httpConn, String url) throws IOException - Throws:
IOException
-
processSSOCookie
-
copyCookie
public static org.apache.http.cookie.Cookie copyCookie(org.apache.http.cookie.Cookie toCopy, String targetServer) -
getSessionIdValueFromState
-
createSsoWar
-
createSsoWar
public static org.jboss.shrinkwrap.api.spec.WebArchive createSsoWar(String warName, boolean includeJBossWeb) -
createSsoEar
public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createSsoEar()
-