6) Logout (
LogoutFilter)The
LogoutFiltercan handle:
It has the following behaviour:
1) If the
localLogoutproperty istrue, the pac4j profiles are removed from the web session (and the web session is destroyed if thekillSessionproperty istrue)2) A post logout action is computed as the redirection to the
urlrequest parameter if it matches thelogoutUrlPatternor to thedefaultUrlif it is defined or as a blank page otherwise3) If the
centralLogoutproperty istrue, the user is redirected to the identity provider for a central logout and then optionally to the post logout redirection URL (if it's supported by the identity provider and if it's an absolute URL). If no central logout is defined, the post logout action is performed directly.The following parameters are available:
1)
defaultUrl(optional): the default logout url if nourlrequest parameter is provided or if theurldoes not match thelogoutUrlPattern(not defined by default)2)
logoutUrlPattern(optional): the logout url pattern that theurlparameter must match (only relative urls are allowed by default)3)
localLogout(optional): whether a local logout must be performed (trueby default)4)
centralLogout(optional): whether a central logout must be performed (falseby default).
<filter><filter-name>logoutFilter</filter-name><filter-class>org.pac4j.j2e.filter.LogoutFilter</filter-class><init-param><param-name>defaultUrl</param-name><param-value>/?defaulturlafterlogout</param-value></init-param></filter><filter-mapping><filter-name>logoutFilter</filter-name><url-pattern>/logout</url-pattern><dispatcher>REQUEST</dispatcher></filter-mapping><filter><filter-name>centralLogoutFilter</filter-name><filter-class>org.pac4j.j2e.filter.LogoutFilter</filter-class><init-param><param-name>defaultUrl</param-name><param-value>http://localhost:8080/?defaulturlafterlogoutafteridp</param-value></init-param><init-param><param-name>localLogout</param-name><param-value>false</param-value></init-param><init-param><param-name>centralLogout</param-name><param-value>true</param-value></init-param><init-param><param-name>logoutUrlPattern</param-name><param-value>http://localhost:8080/.*</param-value></init-param></filter><filter-mapping><filter-name>centralLogoutFilter</filter-name><url-pattern>/centralLogout</url-pattern><dispatcher>REQUEST</dispatcher></filter-mapping>
--
You received this message because you are subscribed to the Google Groups "pac4j-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users+unsubscribe@googlegroups.com.
Hi everyone,I tried to find out if the IdP-initiated SSO is possible with Pac4j.The principle is the following : the user connects to IdP and then is redirected to the SP with a SAMLResponse. So there is no AuthnRequest, no cookie, nothing. It's like if the user never went to the SP before that call.As far as I can see, the defaultUrl can be set with the CallbackController definition. Is that enough for an IdP-initiated SSO ?
Do you see anything that would not work ?