Update logout.adoc: Replace Directives with Directive
This commit is contained in:
parent
84efabbc9a
commit
c823b00794
|
@ -288,7 +288,7 @@ Java::
|
||||||
+
|
+
|
||||||
[source,java,role="primary"]
|
[source,java,role="primary"]
|
||||||
----
|
----
|
||||||
HeaderWriterLogoutHandler clearSiteData = new HeaderWriterLogoutHandler(new ClearSiteDataHeaderWriter(Directives.COOKIES));
|
HeaderWriterLogoutHandler clearSiteData = new HeaderWriterLogoutHandler(new ClearSiteDataHeaderWriter(Directive.COOKIES));
|
||||||
http
|
http
|
||||||
.logout((logout) -> logout.addLogoutHandler(clearSiteData))
|
.logout((logout) -> logout.addLogoutHandler(clearSiteData))
|
||||||
----
|
----
|
||||||
|
@ -297,7 +297,7 @@ Kotlin::
|
||||||
+
|
+
|
||||||
[source,kotlin,role="secondary"]
|
[source,kotlin,role="secondary"]
|
||||||
----
|
----
|
||||||
val clearSiteData = HeaderWriterLogoutHandler(ClearSiteDataHeaderWriter(Directives.COOKIES))
|
val clearSiteData = HeaderWriterLogoutHandler(ClearSiteDataHeaderWriter(Directive.COOKIES))
|
||||||
http {
|
http {
|
||||||
logout {
|
logout {
|
||||||
addLogoutHandler(clearSiteData)
|
addLogoutHandler(clearSiteData)
|
||||||
|
|
Loading…
Reference in New Issue