-
Notifications
You must be signed in to change notification settings - Fork 75
Migration guide
Version 6 of pac4j is now required.
Spring framework 6 and JDK 17 are now required.
The JEE filters (org.pac4j.springframework.security.web.*Filter
) have been removed and the security components of the pac4j security library (for example: javaee-pac4j ands its org.pac4j.jee.filter.*Filter
) must be used instead.
The callback and logout endpoints must be explicitly defined on specific paths.
The pac4j-javaee
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.
Version 4.x of pac4j is now required.
Version 3.x of pac4j is now required.
Version 2.x of pac4j is now required.
You can use the pac4j LogoutFilter
to handle both local (application) and remote (identity server) logout processes.
The CallbackFilter
only applies on /callback
by default so if you need a different callback endpoint (another value) or to apply it globally (empty value), this needs to be changed with the setSuffix
method.
The Pac4jEntryPoint
can be defined with the config
and clientName
parameters to redirect to an identity provider for login.
The spring-security-pac4j
library has strongly changed in version 2:
- the
ClientAuthenticationProvider
has been removed as the authentication happens in theSecurityFilter
(for direct clients) or in theCallbackFilter
(for indirect clients) - the
ClientAuthenticationEntryPoint
is replaced by thePac4jEntryPoint
which should never be called - the
ClientAuthenticationToken
is replaced by thePac4jAuthenticationToken
andPac4jRememberMeAuthenticationToken
(depending on the use case) - the security is ensured by the
SecurityFilter
(as usually in the pac4j world) - the
CallbackFilter
finishes the login process for indirect clients (as usually in the pac4j world) and replaces theClientAuthenticationFilter
.