Skip to content

Commit fafb579

Browse files
Cyanide2489marcusdacoregio
authored andcommitted
fix code blocks formatting mistakes.
1 parent d0546bf commit fafb579

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

docs/modules/ROOT/pages/servlet/architecture.adoc

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ However, there are times that it is beneficial to know the ordering, if you want
174174

175175
To exemplify the above paragraph, let's consider the following security configuration:
176176

177-
====
178-
.Java
177+
[tabs]
178+
======
179+
Java::
180+
+
179181
[source,java,role="primary"]
180182
----
181183
@Configuration
@@ -196,7 +198,9 @@ public class SecurityConfig {
196198
197199
}
198200
----
199-
.Kotlin
201+
202+
Kotlin::
203+
+
200204
[source,kotlin,role="secondary"]
201205
----
202206
import org.springframework.security.config.web.servlet.invoke
@@ -220,7 +224,7 @@ class SecurityConfig {
220224
221225
}
222226
----
223-
====
227+
======
224228

225229
The above configuration will result in the following `Filter` ordering:
226230

@@ -336,8 +340,9 @@ Instead of implementing `Filter`, you can extend from {spring-framework-api-url}
336340

337341
Now, we need to add the filter to the security filter chain.
338342

339-
====
340-
.Java
343+
======
344+
Java::
345+
+
341346
[source,java,role="primary"]
342347
----
343348
@Bean
@@ -348,7 +353,9 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
348353
return http.build();
349354
}
350355
----
351-
.Kotlin
356+
357+
Kotlin::
358+
+
352359
[source,kotlin,role="secondary"]
353360
----
354361
@Bean
@@ -359,7 +366,7 @@ fun filterChain(http: HttpSecurity): SecurityFilterChain {
359366
return http.build()
360367
}
361368
----
362-
====
369+
======
363370

364371
<1> Use `HttpSecurity#addFilterBefore` to add the `TenantFilter` before the `AuthorizationFilter`.
365372

docs/modules/ROOT/pages/servlet/authentication/architecture.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If it contains a value, it is used as the currently authenticated user.
3131
The simplest way to indicate a user is authenticated is to set the `SecurityContextHolder` directly:
3232

3333
.Setting `SecurityContextHolder`
34-
====
34+
3535
[tabs]
3636
======
3737
Java::
@@ -66,7 +66,7 @@ Here, we use `TestingAuthenticationToken`, because it is very simple.
6666
A more common production scenario is `UsernamePasswordAuthenticationToken(userDetails, password, authorities)`.
6767
<3> Finally, we set the `SecurityContext` on the `SecurityContextHolder`.
6868
Spring Security uses this information for xref:servlet/authorization/index.adoc#servlet-authorization[authorization].
69-
====
69+
7070

7171
To obtain information about the authenticated principal, access the `SecurityContextHolder`.
7272

0 commit comments

Comments
 (0)