From 5aa963ba2e678e86e23b21de6a9793038b48c843 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Thu, 16 Jan 2025 16:39:08 +0000 Subject: [PATCH] Update to HTTP error outputs in getting Started with Security --- .../main/asciidoc/security-getting-started-tutorial.adoc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/docs/src/main/asciidoc/security-getting-started-tutorial.adoc b/docs/src/main/asciidoc/security-getting-started-tutorial.adoc index c4652f465ae79..72fee1f4e9401 100644 --- a/docs/src/main/asciidoc/security-getting-started-tutorial.adoc +++ b/docs/src/main/asciidoc/security-getting-started-tutorial.adoc @@ -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: @@ -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.