Skip to content

Commit

Permalink
Fix ElytronOauth2ExtensionResourceTestCase
Browse files Browse the repository at this point in the history
The header should be:
Authorization: Bearer <token>
and not
Authorization: Bearer: <token>
  • Loading branch information
gsmet committed Aug 16, 2024
1 parent 51834c5 commit cd12e4c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void authenticated() {
ensureStarted();
RestAssured.given()
.when()
.header("Authorization", "Bearer: " + BEARER_TOKEN)
.header("Authorization", "Bearer " + BEARER_TOKEN)
.get("/api/authenticated")
.then()
.statusCode(200)
Expand All @@ -78,7 +78,7 @@ public void forbidden() {
ensureStarted();
RestAssured.given()
.when()
.header("Authorization", "Bearer: " + BEARER_TOKEN)
.header("Authorization", "Bearer " + BEARER_TOKEN)
.get("/api/forbidden")
.then()
.statusCode(403);
Expand All @@ -99,13 +99,13 @@ public void testGrpcAuthorization() {
ensureStarted();
RestAssured.given()
.when()
.header("Authorization", "Bearer: " + BEARER_TOKEN)
.header("Authorization", "Bearer " + BEARER_TOKEN)
.get("/api/grpc-writer")
.then()
.statusCode(500);
RestAssured.given()
.when()
.header("Authorization", "Bearer: " + BEARER_TOKEN)
.header("Authorization", "Bearer " + BEARER_TOKEN)
.get("/api/grpc-reader")
.then()
.statusCode(200)
Expand Down

0 comments on commit cd12e4c

Please sign in to comment.