diff --git a/src/login/Template.tsx b/src/login/Template.tsx index d5e84144..09492792 100644 --- a/src/login/Template.tsx +++ b/src/login/Template.tsx @@ -22,6 +22,7 @@ export default function Template(props: TemplateProps) { socialProvidersNode = null, infoNode = null, documentTitle, + bodyClassName, kcContext, i18n, doUseDefaultCss, @@ -46,7 +47,7 @@ export default function Template(props: TemplateProps) { useSetClassName({ "qualifiedName": "body", - "className": getClassName("kcBodyClass") + "className": bodyClassName ?? getClassName("kcBodyClass") }); useEffect(() => { diff --git a/src/login/TemplateProps.ts b/src/login/TemplateProps.ts index 82cc9128..c6503daf 100644 --- a/src/login/TemplateProps.ts +++ b/src/login/TemplateProps.ts @@ -17,6 +17,7 @@ export type TemplateProps + {client.attributes.logoUri && } +

{client.name ? msg("oauthGrantTitle", advancedMsgStr(client.name)) : msg("oauthGrantTitle", client.clientId)}

+ + } >

{msg("oauthGrantRequest")}

    {oauth.clientScopesRequested.map(clientScope => (
  • - {advancedMsg(clientScope.consentScreenText)} + + {advancedMsg(clientScope.consentScreenText)} + {clientScope.dynamicScopeParameter && ( + <> + : {clientScope.dynamicScopeParameter} + + )} +
  • ))}
+ {client.attributes.policyUri || + (client.attributes.tosUri && ( +

+ {client.name ? msg("oauthGrantInformation", advancedMsgStr(client.name)) : msg("oauthGrantInformation", client.clientId)} + {client.attributes.tosUri && ( + <> + {msg("oauthGrantReview")} + + {msg("oauthGrantTos")} + + + )} + {client.attributes.policyUri && ( + <> + {msg("oauthGrantReview")} + + {msg("oauthGrantPolicy")} + + + )} +

+ ))} +