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 e5f51b7 commit 66edb53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources-generated/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

id=cd.go.authorization.keycloak
name=Keycloak oauth authorization plugin
version=2.0.0-17
version=2.0.0-19
goCdVersion=19.2.0
description=Keycloak oauth authorization plugin for GoCD
vendorName=klinux
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources-generated/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<go-plugin id="cd.go.authorization.keycloak" version="1">
<about>
<name>Keycloak oauth authorization plugin</name>
<version>2.0.0-17</version>
<version>2.0.0-19</version>
<target-go-version>19.2.0</target-go-version>
<description>Keycloak oauth authorization plugin for GoCD</description>
<vendor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void tearDown() throws Exception {
public void shouldReturnAuthorizationServerUrl() throws Exception {
final String authorizationServerUrl = KeycloakApiClient.authorizationServerUrl("call-back-url");

assertThat(authorizationServerUrl, startsWith("https://example.com/auth/realms/master/protocol/openid-connect/auth?client_id=client-id&redirect_uri=call-back-url&response_type=code&scope=openid%20profile%20email%20roles&state="));
assertThat(authorizationServerUrl, startsWith("https://example.com/auth/realms/master/protocol/openid-connect/auth?client_id=client-id&redirect_uri=call-back-url&response_type=code&scope=openid%20profile%20email%20groups%20roles&state="));
}

@Test
Expand Down

0 comments on commit 66edb53

Please sign in to comment.