Class ModifiedDefaultSecurityLogic<R,C extends org.pac4j.core.context.WebContext>
- java.lang.Object
-
- org.pac4j.core.profile.factory.ProfileManagerFactoryAware<C>
-
- org.pac4j.core.engine.AbstractExceptionAwareLogic<R,C>
-
- org.pac4j.core.engine.DefaultSecurityLogic
-
- org.technologybrewery.fermenter.stout.authn.ModifiedDefaultSecurityLogic<R,C>
-
- All Implemented Interfaces:
org.pac4j.core.engine.SecurityLogic
public class ModifiedDefaultSecurityLogic<R,C extends org.pac4j.core.context.WebContext> extends org.pac4j.core.engine.DefaultSecurityLogicDefault security logic:
If the HTTP request matches the
matchersconfiguration (or nomatchersare defined), the security is applied. Otherwise, the user is automatically granted access.First, if the user is not authenticated (no profile) and if some clients have been defined in the
clientsparameter, a login is tried for the direct clients.Then, if the user has profile, authorizations are checked according to the
authorizersconfiguration. If the authorizations are valid, the user is granted access. Otherwise, a 403 error page is displayed.Finally, if the user is still not authenticated (no profile), he is redirected to the appropriate identity provider if the first defined client is an indirect one in the
clientsconfiguration. Otherwise, a 401 error page is displayed.
-
-
Field Summary
Fields Modifier and Type Field Description static ModifiedDefaultSecurityLogicINSTANCE
-
Constructor Summary
Constructors Constructor Description ModifiedDefaultSecurityLogic()
-
Method Summary
-
Methods inherited from class org.pac4j.core.engine.DefaultSecurityLogic
forbidden, getAuthorizationChecker, getClientFinder, getMatchingChecker, getProfileStorageDecision, getSavedRequestHandler, perform, redirectToIdentityProvider, saveRequestedUrl, setAuthorizationChecker, setClientFinder, setMatchingChecker, setProfileStorageDecision, setSavedRequestHandler, startAuthentication, toString, unauthorized
-
Methods inherited from class org.pac4j.core.engine.AbstractExceptionAwareLogic
getErrorUrl, handleException, runtimeException, setErrorUrl
-
-
-
-
Field Detail
-
INSTANCE
public static final ModifiedDefaultSecurityLogic INSTANCE
-
-