Skip to content

Commit 7926cc7

Browse files
authored
Merge pull request #45657 from sberyozkin/more_minor_getting_started_sec_updated
Update to HTTP error outputs in Getting Started with Security
2 parents a044827 + 5aa963b commit 7926cc7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docs/src/main/asciidoc/security-getting-started-tutorial.adoc

-8
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,7 @@ public
566566
$ curl -i -X GET http://localhost:8080/api/admin
567567
568568
HTTP/1.1 401 Unauthorized
569-
Content-Length: 14
570-
Content-Type: text/html;charset=UTF-8
571569
WWW-Authenticate: Basic
572-
573-
Not authorized
574570
----
575571
====
576572
* Connect to a protected endpoint as an authorized user:
@@ -606,10 +602,6 @@ If a resource is protected with `@RolesAllowed("user")`, the user `admin` is not
606602
$ curl -i -X GET -u admin:admin http://localhost:8080/api/users/me
607603
608604
HTTP/1.1 403 Forbidden
609-
Content-Length: 34
610-
Content-Type: text/html;charset=UTF-8
611-
612-
Forbidden
613605
----
614606

615607
Finally, the user named `user` is authorized, and the security context contains the principal details, for example, the username.

0 commit comments

Comments
 (0)