Skip to content

Commit

Permalink
FIX GITHUB OAUTH ISSUE
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasr committed Jul 5, 2024
1 parent fd634e1 commit df5a57d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected Mono<AuthToken> getAuthToken(OAuth2RequestContext context) {
.with("client_secret", config.getClientSecret())
.with("grant_type", "authorization_code")
.with("redirect_uri", context.getRedirectUrl()))
.accept(MediaType.APPLICATION_JSON)
.retrieve()
.bodyToMono(Map.class)
.flatMap(map -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ public static String getString(Map<String, Object> map, String key) {
}
}

return current instanceof String ? (String) current : null;
return current!=null?current.toString():null;
}
}

0 comments on commit df5a57d

Please sign in to comment.