OAuth2 Access Confirmation
OAuth2 Access Confirmation
This commit is contained in:
@@ -180,6 +180,11 @@ apps.protocol=\u8BBF\u95EE\u534F\u8BAE
|
||||
apps.category=\u7C7B\u578B
|
||||
apps.account=\u8D26\u53F7
|
||||
|
||||
apps.oauth.approval.title=OAuth \u6388\u6743\u8BF7\u6C42
|
||||
apps.oauth.approval.info=\u6B64\u7B2C\u4E09\u65B9\u5E94\u7528\u8BF7\u6C42\u83B7\u5F97\u4EE5\u4E0B\u6743\u9650:
|
||||
apps.oauth.approval.context=\u8BBF\u95EE\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F
|
||||
apps.oauth.approval.authorize=\u540C\u610F\u6388\u6743
|
||||
|
||||
button.text.action=\u8BBF\u95EE
|
||||
button.text.visit=\u8BBF\u95EE
|
||||
button.text.save=\u4FDD\u5B58
|
||||
|
||||
@@ -179,6 +179,11 @@ apps.protocol=protocol
|
||||
apps.category=category
|
||||
apps.account=account
|
||||
|
||||
apps.oauth.approval.title=OAuth Authorize Confirm
|
||||
apps.oauth.approval.info=This third-party app request has the following permissions:
|
||||
apps.oauth.approval.context=Access your personal information
|
||||
apps.oauth.approval.authorize=Authorize
|
||||
|
||||
button.text.action=Action
|
||||
button.text.visit=Visit
|
||||
button.text.save=Save
|
||||
|
||||
@@ -11,17 +11,31 @@
|
||||
</div>
|
||||
<div class="container">
|
||||
<#if 'oauth 2.0'==model.oauth_version>
|
||||
<!-- oauth 2.0 -->
|
||||
<h2>Please Confirm OAuth 2.0</h2>
|
||||
|
||||
<p>You hereby authorize "${model.client.clientId!}" to access your protected resources.</p>
|
||||
<!-- oauth 2.0 -->
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<th colspan='2'><@locale code="apps.oauth.approval.title"/></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="<@base/>/image/${model.app.id}" title="${model.app.name}" width="65px" height="65px" style="border:0;"/></td>
|
||||
<td>
|
||||
<b>${model.app.name!}</b><br/>
|
||||
<@locale code="apps.oauth.approval.info"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span class="checkboxspan icon_checkbox_selected"></span>
|
||||
<@locale code="apps.oauth.approval.context"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--<p>You hereby authorize "${model.client.clientId!}" to access your protected resources.</p>-->
|
||||
<form id="confirmationForm" name="confirmationForm" action="<@base/>/oauth/v20/authorize" method="post">
|
||||
<input name="user_oauth_approval" value="true" type="hidden"/>
|
||||
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
<label><input name="authorize" value="Authorize" type="submit"/></label>
|
||||
<label><input class="button btn btn-primary mr-3" name="authorize" value='<@locale code="apps.oauth.approval.authorize"/>' type="submit"/></label>
|
||||
</form>
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user