KEYCLOAK-10266
This commit is contained in:
parent
29d5814068
commit
d472efb1b5
1 changed files with 19 additions and 0 deletions
|
@ -6,6 +6,25 @@ You then have to provide some extra beans in your Spring Security configuration
|
|||
|
||||
Unlike the other Keycloak Adapters, you should not configure your security in web.xml.
|
||||
However, keycloak.json is still required.
|
||||
In order for Single Sign Out work properly you have to define a session listener.
|
||||
|
||||
.The session listener can be defined:
|
||||
* in web.xml (for pure Spring Security environments):
|
||||
[source,xml]
|
||||
----
|
||||
<listener>
|
||||
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
|
||||
</listener>
|
||||
----
|
||||
* as a Spring bean (in Spring Boot environments using Spring Security adapter)
|
||||
[source,java]
|
||||
----
|
||||
@Bean
|
||||
public ServletListenerRegistrationBean<HttpSessionEventPublisher> httpSessionEventPublisher() {
|
||||
return new ServletListenerRegistrationBean<HttpSessionEventPublisher>(new HttpSessionEventPublisher());
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
===== Adapter Installation
|
||||
|
||||
|
|
Loading…
Reference in a new issue