forked from patientsknowbest/fake-oauth2-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
input.html
49 lines (48 loc) · 2.1 KB
/
input.html
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
41
42
43
44
45
46
47
48
49
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<title>Fake Google OAuth2 (and maybe other services)</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6">
<h1>Fake OAuth2 Server</h1>
<h2>Request parameters:</h2>
<table class="table table-striped">
<% _.each(query, (val, name) => { %>
<tr>
<td><%- name %></td>
<td><%- val %></td>
</tr>
<% }); %>
</table>
<h2>Create token & grant access</h2>
<form action="/login-as">
<div class="form-group">
<label for="name">Name of the resource owner (optional): </label>
<input name="name" id="name" class="form-control" />
</div>
<div class="form-group">
<label for="email">Email of the resource owner (optional): </label>
<input type="email" class="form-control" placeholder="[email protected]"
name="email" id="email"/>
<p class="help-block">Enter the email address of the person you want to impersonate.</p>
</div>
<div class="form-group">
<label for="expires_in">Token expiry (in seconds): </label>
<input type="number" class="form-control" value="3600" name="expires_in" id="expires_in"/>
</div>
<div class="form-group">
<label for="refresh_token_expires_in">Refresh Token expiry (in seconds): </label>
<input type="number" class="form-control" value="7200" name="refresh_token_expires_in" id="refresh_token_expires_in"/>
</div>
<input type="submit" value="generate token"/>
</form>
</div>
<div class="col-lg-3"></div>
</div>
</div>
</body>
<html>