Skip to content

Commit 3fb87d1

Browse files
committed
Add role=primary/secondary example
Issue gh-7801
1 parent b85b4b8 commit 3fb87d1

File tree

1 file changed

+6
-9
lines changed
  • docs/manual/src/docs/asciidoc/_includes/servlet/authentication/unpwd/input

1 file changed

+6
-9
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/unpwd/input/basic.adoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@ This section provides details on how Spring Security provides support for https:
77
Spring Security's HTTP Basic Authentication support in is enabled by default.
88
However, as soon as any servlet based configuration is provided, HTTP Basic must be explicitly provided.
99

10-
A minimal, explicit Java configuration can be found below:
10+
A minimal, explicit configuration can be found below:
1111

12-
.HTTP Basic Java Configuration
12+
.Explicit HTTP Basic Configuration
1313
====
14-
[source,java]
14+
[source,java,role="primary"]
15+
.Java
1516
----
1617
protected void configure(HttpSecurity http) {
1718
http
1819
// ...
1920
.httpBasic(withDefaults());
2021
}
2122
----
22-
====
23-
24-
A minimal XML configuration can be found below:
2523
26-
.HTTP Basic XML Configuration
27-
====
28-
[source,xml]
24+
[source,xml,role="secondary"]
25+
.XML
2926
----
3027
<http>
3128
<!-- ... -->

0 commit comments

Comments
 (0)