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 Bariaux1d2165bdaf3d
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 527633663..059ef80b0 100644
--- a/container/src/main/java/org/openremote/container/security/IdentityService.java
+++ b/container/src/main/java/org/openremote/container/security/IdentityService.java
@@ -382,7 +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");
+ redirectUrls.add("org.openremote.console://oauth2Callback"); // Callback URL used by AeroGear for authentication from console
client.setRedirectUris(redirectUrls);
String baseUrl = UriBuilder.fromUri("/").path(realm).build().toString();