Skip to content

Commit

Permalink
Merge pull request #7 from gayanlggd/master
Browse files Browse the repository at this point in the history
fixing issue in handling empty client redirect uri
  • Loading branch information
chamilaadhi authored May 4, 2020
2 parents ed3d4a5 + abaef5a commit ff97287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.carbon</groupId>
<artifactId>apim-keymanager-keycloak</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>bundle</packaging>
<name>Client implementation to integrate with Keycloak Authorization Server</name>
<url>http://wso2.org</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/wso2/keycloak/client/KeycloakClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ private String createJsonPayloadFromOauthApplication(OAuthApplicationInfo oAuthA
}

String clientRedirectUri = oAuthApplicationInfo.getCallBackURL();
if (!StringUtils.isNotEmpty(clientRedirectUri)) {
if (StringUtils.isNotEmpty(clientRedirectUri)) {
List<String> redirectUris = Collections.singletonList(clientRedirectUri);
paramMap.put(KeycloakConstants.CLIENT_REDIRECT_URIS, redirectUris);
}
Expand Down

0 comments on commit ff97287

Please sign in to comment.