From c5833b15f5e84aebd0387daa8feeb950631fd229 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Fri, 30 Sep 2022 17:46:20 +0100 Subject: [PATCH] Update the template to allow selecting realms --- .../main/resources/dev-templates/provider.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/extensions/oidc/deployment/src/main/resources/dev-templates/provider.html b/extensions/oidc/deployment/src/main/resources/dev-templates/provider.html index b73635a79de3fc..e7d70324447e3f 100644 --- a/extensions/oidc/deployment/src/main/resources/dev-templates/provider.html +++ b/extensions/oidc/deployment/src/main/resources/dev-templates/provider.html @@ -14,6 +14,10 @@ var devRoot = '{devRootAppend}'; var encodedDevRoot = devRoot.replaceAll("/", "%2F"); + {#if info:keycloakAdminUrl?? && info:keycloakRealms??} + var realms = info:keycloakRealms??.split(","); + {/if} + {#if info:oidcGrantType is 'implicit' || info:oidcGrantType is 'code'} var accessToken; var idToken; @@ -262,6 +266,7 @@ } {/if} + {/if} {#if info:oidcApplicationType is 'web-app'} @@ -436,6 +441,16 @@
+ {#if info:keycloakAdminUrl?? && info:keycloakRealms??} +
+ + +
+ {/if} Log into Single Page Application