-
Notifications
You must be signed in to change notification settings - Fork 75
Migration guide
LELEU Jérôme edited this page Oct 15, 2018
·
11 revisions
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
.