From 0b65cd7cd2fae3b501f6aea0454b8b3a94a39266 Mon Sep 17 00:00:00 2001 From: Rohith Date: Tue, 7 Aug 2018 15:51:38 +0100 Subject: [PATCH] Partial Grant Fix - removing the empty holder from the consent form - note: i can't find the methods for client, realm and claim requests in the bean anymore https://www.keycloak.org/docs-api/4.1/javadocs/org/keycloak/forms/login/freemarker/model/OAuthGrantBean.html --- govuk/login/login-oauth-grant.ftl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/govuk/login/login-oauth-grant.ftl b/govuk/login/login-oauth-grant.ftl index b3910fd..2645c29 100644 --- a/govuk/login/login-oauth-grant.ftl +++ b/govuk/login/login-oauth-grant.ftl @@ -1,12 +1,14 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass="oauth"; section> <#if section = "title"> - ${msg("oauthGrantTitle")} + <#if client.name?has_content> + ${msg("oauthGrantTitle",advancedMsg(client.name))} + <#else> + ${msg("oauthGrantTitle",client.clientId)} + <#elseif section = "form"> - ${msg("oauthGrantTitleHtml",(realm.displayName!''))?no_esc} <#if client.name??>${advancedMsg(client.name)}<#else>${client.clientId}. -
-

${msg("oauthGrantRequest")}

+

${msg("oauthGrantRequest")}