forked from restlet/restlet-framework-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthorize.html
More file actions
40 lines (37 loc) · 1.63 KB
/
authorize.html
File metadata and controls
40 lines (37 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<title>OAuth2Sample</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row" style="margin-top:50px;">
<div class="span8 offset2">
<form action="${target}" method="get" class="form-horizontal">
<legend>Authorize</legend>
<h4>The following private info is requested</h4>
<#list requestingScopes as r> <input type="checkbox" name="scope" value="${r}" checked />
<b>${r}</b><br/>
</#list>
<#if grantedScopes?has_content>
<hr />
<h4>Previously approved scopes</h4>
<#list grantedScopes as g> <input type="checkbox" name="scope" value="${g}" checked />
<b>${g}</b><br/>
</#list>
</#if>
<div class="form-actions">
<input type="submit" name="action" value="Accept" class="btn btn-large btn-primary" />
<input type="submit" name="action" value="Reject" class="btn btn-large" />
</div>
</form>
</div>
</div>
</div>
</body>
</html>