123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <#import "template.ftl" as layout>
- <@layout.registrationLayout bodyClass="oauth"; section>
- <#if section = "header">
- <#if client.attributes.logoUri??>
- <img src="${client.attributes.logoUri}"/>
- </#if>
- <p>
- <#if client.name?has_content>
- ${msg("oauthGrantTitle",advancedMsg(client.name))}
- <#else>
- ${msg("oauthGrantTitle",client.clientId)}
- </#if>
- </p>
- <#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>
- <#if client.attributes.policyUri?? || client.attributes.tosUri??>
- <h3>
- <#if client.name?has_content>
- ${msg("oauthGrantInformation",advancedMsg(client.name))}
- <#else>
- ${msg("oauthGrantInformation",client.clientId)}
- </#if>
- <#if client.attributes.tosUri??>
- ${msg("oauthGrantReview")}
- <a href="${client.attributes.tosUri}" target="_blank">${msg("oauthGrantTos")}</a>
- </#if>
- <#if client.attributes.policyUri??>
- ${msg("oauthGrantReview")}
- <a href="${client.attributes.policyUri}" target="_blank">${msg("oauthGrantPolicy")}</a>
- </#if>
- </h3>
- </#if>
- <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>
|