Skip to content

Commit

Permalink
Merge pull request quarkusio#42707 from jedla97/change-security-oauth…
Browse files Browse the repository at this point in the history
…2-docs

Update OAuth2 docs because of change in Bearer token check change
  • Loading branch information
sberyozkin authored Aug 22, 2024
2 parents 59d8bf7 + bbb45b0 commit 09c8742
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 09c8742

Please sign in to comment.