Skip to content

Commit

Permalink
Update to HTTP error outputs in getting Started with Security
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Jan 16, 2025
1 parent ff1cccb commit 5aa963b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/src/main/asciidoc/security-getting-started-tutorial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,7 @@ public
$ curl -i -X GET http://localhost:8080/api/admin
HTTP/1.1 401 Unauthorized
Content-Length: 14
Content-Type: text/html;charset=UTF-8
WWW-Authenticate: Basic
Not authorized
----
====
* Connect to a protected endpoint as an authorized user:
Expand Down Expand Up @@ -606,10 +602,6 @@ If a resource is protected with `@RolesAllowed("user")`, the user `admin` is not
$ curl -i -X GET -u admin:admin http://localhost:8080/api/users/me
HTTP/1.1 403 Forbidden
Content-Length: 34
Content-Type: text/html;charset=UTF-8
Forbidden
----

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

0 comments on commit 5aa963b

Please sign in to comment.