Details
diff --git a/examples/js-console/example-realm.json b/examples/js-console/example-realm.json
index 7cb5485..42d291e 100755
--- a/examples/js-console/example-realm.json
+++ b/examples/js-console/example-realm.json
@@ -48,12 +48,12 @@
"name": "js-console",
"enabled": true,
"publicClient": true,
- "baseUrl": "http://localhost/js-console",
+ "baseUrl": "http://localhost:8080/js-console",
"redirectUris": [
- "http://localhost/js-console/*"
+ "http://localhost:8080/js-console/*"
],
"webOrigins": [
- "http://localhost"
+ "http://localhost:8080"
]
}
],
diff --git a/examples/js-console/src/main/webapp/index.html b/examples/js-console/src/main/webapp/index.html
index 499c928..45f7665 100644
--- a/examples/js-console/src/main/webapp/index.html
+++ b/examples/js-console/src/main/webapp/index.html
@@ -1,13 +1,13 @@
<html>
<head>
- <script src="//localhost:8081/auth/js/keycloak.js"></script>
+ <script src="//localhost:8080/auth/js/keycloak.js"></script>
</head>
<body>
<div>
<button onclick="keycloak.login()">Login</button>
<button onclick="keycloak.logout()">Logout</button>
- <button onclick="refreshToken()">Refresh Token</button>
+ <button onclick="refreshToken(9999)">Refresh Token</button>
<button onclick="refreshToken(30)">Refresh Token (if <30s validity)</button>
<button onclick="loadProfile()">Get Profile</button>
<button onclick="output(keycloak.tokenParsed)">Show Token</button>
diff --git a/examples/js-console/src/main/webapp/keycloak.json b/examples/js-console/src/main/webapp/keycloak.json
index 66434b9..286d87b 100644
--- a/examples/js-console/src/main/webapp/keycloak.json
+++ b/examples/js-console/src/main/webapp/keycloak.json
@@ -1,8 +1,8 @@
{
"realm" : "example",
"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" : "js-console",
"public-client" : true
-}
\ No newline at end of file
+}