aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-05-22 16:57:43 +0200
committerMax Magorsch <arzano@gentoo.org>2020-05-22 16:57:43 +0200
commita005ba8e29ff68950bc6b9c93898ddb34fb25d60 (patch)
tree24e4051efc3e19c04095aa0ce3695c5c7dd43110 /login/login-oauth-grant.ftl
downloadtyrian-keycloak-theme-a005ba8e29ff68950bc6b9c93898ddb34fb25d60.tar.gz
tyrian-keycloak-theme-a005ba8e29ff68950bc6b9c93898ddb34fb25d60.tar.bz2
tyrian-keycloak-theme-a005ba8e29ff68950bc6b9c93898ddb34fb25d60.zip
Initial version of the theme
Please note that this is currently still a WIP and likely to change a lot in future. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'login/login-oauth-grant.ftl')
-rw-r--r--login/login-oauth-grant.ftl41
1 files changed, 41 insertions, 0 deletions
diff --git a/login/login-oauth-grant.ftl b/login/login-oauth-grant.ftl
new file mode 100644
index 0000000..8c59276
--- /dev/null
+++ b/login/login-oauth-grant.ftl
@@ -0,0 +1,41 @@
+<#import "template.ftl" as layout>
+<@layout.registrationLayout bodyClass="oauth"; section>
+ <#if section = "header">
+ <#if client.name?has_content>
+ ${msg("oauthGrantTitle",advancedMsg(client.name))}
+ <#else>
+ ${msg("oauthGrantTitle",client.clientId)}
+ </#if>
+ <#elseif section = "form">
+ <div id="kc-oauth" class="content-area">
+ <h3>${msg("oauthGrantRequest")}</h3>
+ <ul>
+ <#if oauth.clientScopesRequested??>
+ <#list oauth.clientScopesRequested as clientScope>
+ <li>
+ <span>${advancedMsg(clientScope.consentScreenText)}</span>
+ </li>
+ </#list>
+ </#if>
+ </ul>
+
+ <form class="form-actions" action="${url.oauthAction}" method="POST">
+ <input type="hidden" name="code" value="${oauth.code}">
+ <div class="${properties.kcFormGroupClass!}">
+ <div id="kc-form-options">
+ <div class="${properties.kcFormOptionsWrapperClass!}">
+ </div>
+ </div>
+
+ <div id="kc-form-buttons">
+ <div class="${properties.kcFormButtonsWrapperClass!}">
+ <input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="accept" id="kc-login" type="submit" value="${msg("doYes")}"/>
+ <input class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="cancel" id="kc-cancel" type="submit" value="${msg("doNo")}"/>
+ </div>
+ </div>
+ </div>
+ </form>
+ <div class="clearfix"></div>
+ </div>
+ </#if>
+</@layout.registrationLayout>