-
Notifications
You must be signed in to change notification settings - Fork 19
Migration guide
The setConfig
and getConfig
methods are now named setSharedConfig
and getSharedConfig
.
The FilterHelper
can be used to programmatically define filters and mappings, using an injected Config
.
The WebContext
and the ProfileManager
are automatically produced by the Pac4jProducer
and the HttpServletResponseProducer
(based on JSF) and can be injected wherever they are needed.
The ApplicationLogoutFilter
has been renamed as LogoutFilter
and now handles both the application and identity provider logouts.
The RequiresAuthenticationFilter
is now named SecurityFilter
with the clients
, authorizers
and matchers
parameters instead of the previous clientName
, authorizerName
and matcherName
.
The ApplicationLogoutFilter
behaviour has slightly changed: even without any url
request parameter, the user will be redirected to the defaultUrl
if it has been defined.
Authorizations are now handled by the library so the ClientFactory
can now longer be used and is replaced by a ConfigFactory
which builds a Config
which gathers clients (for authentication) and authorizers (for authorizations).
The isAjax
parameter is no longer available as AJAX requests are now automatically detected. The stateless
parameter is no longer available as the stateless nature is held by the client itself.
The requireAnyRole
and requieAllRoles
parameters are no longer available and authorizers must be used instead (with the authorizerName
parameter).
The application logout process can be managed with the ApplicationLogoutFilter
.