Skip to content

Commit

Permalink
Fix oauth2 docs as Bearer token check was changed in qurkusio/quarkus…
Browse files Browse the repository at this point in the history
…#42595
  • Loading branch information
jedla97 committed Aug 22, 2024
1 parent 59d8bf7 commit bbb45b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/security-oauth2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit bbb45b0

Please sign in to comment.