Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44a8b79

Browse filesBrowse files
author
Marcos.Cela
committed
fix: JWTTokenProvider has an incorrect value for the returned authorization header
more info: https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app
1 parent cdede29 commit 44a8b79
Copy full SHA for 44a8b79

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/main/java/org/kohsuke/github/extras/auth/JWTTokenProvider.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/extras/auth/JWTTokenProvider.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public String getEncodedAuthorization() throws IOException {
6262
if (Instant.now().isAfter(validUntil)) {
6363
token = refreshJWT();
6464
}
65-
return token;
65+
return String.format("Bearer %s", token);
6666
}
6767
}
6868

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.