Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

#17: Add valid callback URL required for console login

Eric Bariauxaa810e9c4acc
diff --git a/container/src/main/java/org/openremote/container/security/IdentityService.java b/container/src/main/java/org/openremote/container/security/IdentityService.java
index 61fbc1291..527633663 100644
--- a/container/src/main/java/org/openremote/container/security/IdentityService.java
+++ b/container/src/main/java/org/openremote/container/security/IdentityService.java
@@ -382,6 +382,7 @@ public class IdentityService implements ContainerService {
String callbackUrl = UriBuilder.fromUri("/").path(realm).path("*").build().toString();
List<String> redirectUrls = new ArrayList<>();
redirectUrls.add(callbackUrl);
+ redirectUrls.add("org.openremote.console://oauth2Callback");
client.setRedirectUris(redirectUrls);
String baseUrl = UriBuilder.fromUri("/").path(realm).build().toString();