From bbb45b012e1f652c1f4b74c46358d52a4a638314 Mon Sep 17 00:00:00 2001 From: Jakub Jedlicka Date: Thu, 22 Aug 2024 17:02:18 +0200 Subject: [PATCH] Fix oauth2 docs as Bearer token check was changed in qurkusio/quarkus#42595 --- docs/src/main/asciidoc/security-oauth2.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/security-oauth2.adoc b/docs/src/main/asciidoc/security-oauth2.adoc index 071f52b89ad9d..d95d4c35f7224 100644 --- a/docs/src/main/asciidoc/security-oauth2.adoc +++ b/docs/src/main/asciidoc/security-oauth2.adoc @@ -418,7 +418,7 @@ class TokenSecuredResourceTest { void testPermitAll() { RestAssured.given() .when() - .header("Authorization", "Bearer: " + BEARER_TOKEN) // <3> + .header("Authorization", "Bearer " + BEARER_TOKEN) // <3> .get("/secured/permit-all") .then() .statusCode(200) @@ -429,7 +429,7 @@ class TokenSecuredResourceTest { void testRolesAllowed() { RestAssured.given() .when() - .header("Authorization", "Bearer: " + BEARER_TOKEN) + .header("Authorization", "Bearer " + BEARER_TOKEN) .get("/secured/roles-allowed") .then() .statusCode(200)