From 1ede6e70b7f495eb06a7590f347705ee7294a537 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 29 May 2014 14:04:10 +0100 Subject: [PATCH] Fix customer-portal-cli example --- examples/demo-template/customer-app-cli/pom.xml | 4 ++++ .../src/main/resources/META-INF/keycloak.json | 2 +- examples/demo-template/testrealm.json | 4 ++++ .../org/keycloak/adapters/installed/KeycloakInstalled.java | 2 -- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/demo-template/customer-app-cli/pom.xml b/examples/demo-template/customer-app-cli/pom.xml index 87ef08edb3..ada86671f3 100755 --- a/examples/demo-template/customer-app-cli/pom.xml +++ b/examples/demo-template/customer-app-cli/pom.xml @@ -20,6 +20,10 @@ keycloak-installed-adapter ${project.version} + + org.jboss.logging + jboss-logging + diff --git a/examples/demo-template/customer-app-cli/src/main/resources/META-INF/keycloak.json b/examples/demo-template/customer-app-cli/src/main/resources/META-INF/keycloak.json index fc1fab9ba0..bf07380bcd 100644 --- a/examples/demo-template/customer-app-cli/src/main/resources/META-INF/keycloak.json +++ b/examples/demo-template/customer-app-cli/src/main/resources/META-INF/keycloak.json @@ -1,7 +1,7 @@ { "realm" : "demo", "realm-public-key" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB", - "auth-server-url" : "http://localhost:8081/auth", + "auth-server-url" : "http://localhost:8080/auth", "ssl-not-required" : true, "resource" : "customer-portal-cli", "public-client" : true diff --git a/examples/demo-template/testrealm.json b/examples/demo-template/testrealm.json index 79ed7f37bd..f4ff956604 100755 --- a/examples/demo-template/testrealm.json +++ b/examples/demo-template/testrealm.json @@ -73,6 +73,10 @@ "client": "customer-portal-js", "roles": ["user"] }, + { + "client": "customer-portal-cli", + "roles": ["user"] + }, { "client": "angular-product", "roles": ["user"] diff --git a/integration/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java b/integration/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java index 910cd73329..02304c056c 100644 --- a/integration/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java +++ b/integration/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java @@ -100,7 +100,6 @@ public class KeycloakInstalled { .queryParam(OAuth2Constants.CLIENT_ID, deployment.getResourceName()) .queryParam(OAuth2Constants.REDIRECT_URI, redirectUri) .queryParam(OAuth2Constants.STATE, state) - .queryParam("login", "true") .build().toString(); Desktop.getDesktop().browse(new URI(authUrl)); @@ -156,7 +155,6 @@ public class KeycloakInstalled { String authUrl = deployment.getAuthUrl().clone() .queryParam(OAuth2Constants.CLIENT_ID, deployment.getResourceName()) .queryParam(OAuth2Constants.REDIRECT_URI, redirectUri) - .queryParam("login", "true") .build().toString(); printer.println("Open the following URL in a browser. After login copy/paste the code back and press ");