Class HeadlessAuthenticationFilter

  • All Implemented Interfaces:
    org.forgerock.http.Filter

    public class HeadlessAuthenticationFilter
    extends Object
    implements org.forgerock.http.Filter
    Provides an OpenAM SSO Token in the given header name for downstream components.

    If the request failed with a 401 UNAUTHORIZED, a unique attempt to refresh the SSO token is tried.

    See Also:
    OPENAM REST API status codes
    • Method Detail

      • filter

        public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,​org.forgerock.util.promise.NeverThrowsException> filter​(org.forgerock.services.context.Context context,
                                                                                                                                                     org.forgerock.http.protocol.Request request,
                                                                                                                                                     org.forgerock.http.Handler next)
        Specified by:
        filter in interface org.forgerock.http.Filter