Class SimpleRouteAuthenticator
java.lang.Object
com.kingsrook.qqq.middleware.javalin.routeproviders.authentication.SimpleRouteAuthenticator
- All Implemented Interfaces:
RouteAuthenticatorInterface
simple implementation of a route authenticator. Assumes that unauthenticated
requests should redirect to a login page. Note though, maybe that should be
more intelligent, like, only redirect requests for a .html file, but not
requests for include files like images or .js/.css?
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticateRequest
(io.javalin.http.Context context) where authentication for a route occurs, before the route is served.
-
Constructor Details
-
SimpleRouteAuthenticator
public SimpleRouteAuthenticator()
-
-
Method Details
-
authenticateRequest
Description copied from interface:RouteAuthenticatorInterface
where authentication for a route occurs, before the route is served.- Specified by:
authenticateRequest
in interfaceRouteAuthenticatorInterface
- Returns:
- true if request is authenticated; else false
- Throws:
QException
-