Class SSOTestBase

java.lang.Object
org.jboss.as.test.integration.web.sso.SSOTestBase

public final class SSOTestBase extends Object
Base class for tests of web app single sign-on
Author:
Brian Stansberry, lbarreiro@redhat.com
  • Field Details

  • 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

      public static String processSSOCookie(org.apache.http.client.CookieStore cookieStore, String serverA, String serverB)
    • copyCookie

      public static org.apache.http.cookie.Cookie copyCookie(org.apache.http.cookie.Cookie toCopy, String targetServer)
    • getSessionIdValueFromState

      public static String getSessionIdValueFromState(org.apache.http.client.CookieStore cookieStore)
    • createSsoWar

      public static org.jboss.shrinkwrap.api.spec.WebArchive createSsoWar(String warName)
    • createSsoWar

      public static org.jboss.shrinkwrap.api.spec.WebArchive createSsoWar(String warName, boolean includeJBossWeb)
    • createSsoEar

      public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive createSsoEar()