-
Notifications
You must be signed in to change notification settings - Fork 19
Migration guide
Version 6.x of pac4j and JDK 17 are now required.
The pac4j-javaee
/ pac4j-jakartaee
artifact is pulled instead of the pac4j-jee
artifact: JEE components are now in the org.pac4j.jee
package.
The pac4j-jee
artifact is pulled instead of the pac4j-core
artifact.
Version 5.x of pac4j is now required. JDK 11 is required too.
The multiProfile
and saveInSession
options are now removed from the filters and handled at the Client
level.
The setConfigOnly
/getConfigOnly
methods are renamed as setConfig
/getConfig
.
Version 4.x of pac4j is now required.
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
.