Skip to content

Commit bc61642

Browse files
jedla97gsmet
authored andcommitted
Fix oauth2 test as Bearer token check was changed in qurkusio/quarkus#42595
1 parent 88f1820 commit bc61642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security-oauth2-quickstart/src/test/java/org/acme/security/oauth2/TokenSecuredResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TokenSecuredResourceTest {
1717
void testPermitAll() {
1818
RestAssured.given()
1919
.when()
20-
.header("Authorization", "Bearer: " + BEARER_TOKEN)
20+
.header("Authorization", "Bearer " + BEARER_TOKEN)
2121
.get("/secured/permit-all")
2222
.then()
2323
.statusCode(200)
@@ -28,7 +28,7 @@ void testPermitAll() {
2828
void testRolesAllowed() {
2929
RestAssured.given()
3030
.when()
31-
.header("Authorization", "Bearer: " + BEARER_TOKEN)
31+
.header("Authorization", "Bearer " + BEARER_TOKEN)
3232
.get("/secured/roles-allowed")
3333
.then()
3434
.statusCode(200)

0 commit comments

Comments
 (0)