Skip to content

Commit

Permalink
Feature: supporting groups scope
Browse files Browse the repository at this point in the history
Signed-off-by: Kleber Rocha <klinux@gmail.com>
  • Loading branch information
klinux committed Aug 15, 2023
1 parent 176eb20 commit e5f51b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public String authorizationServerUrl(String callbackUrl) throws Exception {
.addQueryParameter("client_id", keycloakConfiguration.clientId())
.addQueryParameter("redirect_uri", callbackUrl)
.addQueryParameter("response_type", "code")
.addQueryParameter("scope", "openid profile email roles")
.addQueryParameter("scope", "openid profile email groups roles")
.addQueryParameter("state", UUID.randomUUID().toString())
.addQueryParameter("nonce", UUID.randomUUID().toString())
.build().toString();
Expand Down Expand Up @@ -242,7 +242,7 @@ public GoPluginApiResponse fetchRefreshToken(String refresh_token) throws Except
.build();

TokenInfo tokenInfo = executeRequest(request, response -> TokenInfo.fromJSON(response.body().string()));
LOG.info("[KeycloakApiClient] Token Info: " + tokenInfo.toJSON().toString());

return DefaultGoPluginApiResponse.success(tokenInfo.toJSON());
}
}

0 comments on commit e5f51b7

Please sign in to comment.