|
@@ -95,6 +95,8 @@ public class HelloWebfluxSecurityConfig {
|
|
|
.Kotlin
|
|
|
[source,kotlin,role="secondary"]
|
|
|
-----
|
|
|
+import org.springframework.security.config.web.server.invoke
|
|
|
+
|
|
|
@Configuration
|
|
|
@EnableWebFluxSecurity
|
|
|
class HelloWebfluxSecurityConfig {
|
|
@@ -123,6 +125,9 @@ class HelloWebfluxSecurityConfig {
|
|
|
-----
|
|
|
====
|
|
|
|
|
|
+[NOTE]
|
|
|
+Make sure that you import the `invoke` function in your Kotlin class, sometimes the IDE will not auto-import it causing compilation issues.
|
|
|
+
|
|
|
This configuration explicitly sets up all the same things as our minimal configuration.
|
|
|
From here, you can more easily make changes to the defaults.
|
|
|
|
|
@@ -177,6 +182,8 @@ static class MultiSecurityHttpConfig {
|
|
|
.Kotlin
|
|
|
[source,kotlin,role="secondary"]
|
|
|
----
|
|
|
+import org.springframework.security.config.web.server.invoke
|
|
|
+
|
|
|
@Configuration
|
|
|
@EnableWebFluxSecurity
|
|
|
open class MultiSecurityHttpConfig {
|