Skip to content

Commit b510ebb

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
FIX GITHUB OAUTH ISSUE
1 parent bbf21e9 commit b510ebb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/request/oauth2/request/GenericAuthRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ protected Mono<AuthToken> getAuthToken(OAuth2RequestContext context) {
4242
.with("client_secret", config.getClientSecret())
4343
.with("grant_type", "authorization_code")
4444
.with("redirect_uri", context.getRedirectUrl()))
45+
.accept(MediaType.APPLICATION_JSON)
4546
.retrieve()
4647
.bodyToMono(Map.class)
4748
.flatMap(map -> {

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/util/AdvancedMapUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ public static String getString(Map<String, Object> map, String key) {
5050
}
5151
}
5252

53-
return current instanceof String ? (String) current : null;
53+
return current!=null?current.toString():null;
5454
}
5555
}

0 commit comments

Comments
 (0)