authorize.ftl revision 1c572daf20390f2ac609aa0352c36b02ae939d35
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
<!--
~ DO NOT REMOVE COPYRIGHT NOTICES OR THIS HEADER.
~
~ Copyright 2012-2014 ForgeRock AS.
~
~ The contents of this file are subject to the terms
~ of the Common Development and Distribution License
~ (the License). You may not use this file except in
~ compliance with the License.
~
~ You can obtain a copy of the License at
~ See the License for the specific language governing
~ permission and limitations under the License.
~
~ When distributing Covered Code, include this CDDL
~ Header Notice in each file and include the License file
~ If applicable, add the following below the CDDL Header,
~ with the fields enclosed by brackets [] replaced by
~ your own identifying information:
~ "Portions Copyrighted [year] [name of copyright owner]"
-->
<wml>
<card id="info" newcontext="true">
<h2>OAuth authorization page</h2>
<section id="intro">
<h2>Application requesting scope</h2>
<p>${display_name?if_exists}:</p>
<p>${display_description?if_exists} </p>
</section>
</card>
<card id="form" newcontext="true">
<form action="${target!'.'}" method="post">
<h4>The following private info is requested</h4>
<#if display_scope??>
<#list display_scope as r>
<b>${r}</b><br/>
</#list>
</#if>
<br/>
<!-- Optional parameters -->
<#if realm??>
<input type="hidden" name="realm" value="${realm?html}"/>
</#if>
<#if redirect_uri??>
<input type="hidden" name="redirect_uri" value="${redirect_uri?html}"/>
</#if>
<#if scope??>
<input type="hidden" name="scope" value="${scope?html}"/>
</#if>
<#if state??>
<input type="hidden" name="state" value="${state?html}"/>
</#if>
<#if nonce??>
<input type="hidden" name="nonce" value="${nonce?html}"/>
</#if>
<!-- Required parameters -->
<input type="hidden" name="response_type" value="${response_type}"/>
<input type="hidden" name="client_id" value="${client_id}"/>
Save Consent: <input type="checkbox" name="save_consent" />
<!-- Custom parameters -->
<!--input type="hidden" name="decision" value="allow"/>
<input type="submit" value="Allow access" class="button save"/>
<input type="hidden" name="decision" value="deny"/>
<input type="submit" value="No Thanks" class="button"/-->
<input type="submit" name="decision" class="button gray" value="Allow"/>
<input type="submit" name="decision" class="button gray" value="Deny"/>
</form>
</card>
</wml>