Class ExternalAuthHelper

  • Direct Known Subclasses:
    FakeExternalAuthController.FakeExternalAuthHelper

    public class ExternalAuthHelper
    extends Object
    Capture the properties used by the External Authorization system, and use them to assist in the process. The first time this bean is requested, it is created from the configuration properties and cached in the session. After that, the cached version is used.
    • Field Detail

      • PROPERTY_EXTERNAL_AUTH_ID_HEADER

        public static final String PROPERTY_EXTERNAL_AUTH_ID_HEADER
        This configuration property says which HTTP header holds the auth ID.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExternalAuthHelper

        protected ExternalAuthHelper​(String externalAuthServerUrl,
                                     String externalAuthHeaderName)
        It would be private, but we want to allow subclasses for faking.
    • Method Detail

      • getHelper

        public static ExternalAuthHelper getHelper​(javax.servlet.ServletRequest request)
        Get the bean from the servlet context. If there is no bean, create one. Never returns null.
      • setBean

        protected static void setBean​(javax.servlet.ServletContext context,
                                      ExternalAuthHelper bean)
        It would be private, but we want to allow calls for faking.
      • buildExternalAuthRedirectUrl

        public String buildExternalAuthRedirectUrl​(String returnUrl)
      • getExternalAuthId

        public String getExternalAuthId​(javax.servlet.http.HttpServletRequest request)