forked from kbase/auth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loginchoice.mustache
64 lines (56 loc) · 2.14 KB
/
loginchoice.mustache
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<html>
<body>
<p>Note that in a proper UI, the provider usernames, the display name, and email address should be HTML-escaped.</p>
Choices expire: {{expires}}<br/>
<form action="{{cancelurl}}" method="post">
<input type="submit" value="Cancel login"/>
</form>
<h2>Provider: {{provider}}</h2>
<h3>Login</h3>
<p>The login information from the provider allows you to access these
accounts:</p>
{{#login}}
Username: {{user}} {{#disabled}}DISABLED{{/disabled}} {{#adminonly}}***Currently only admin accounts can log in***{{/adminonly}}<br/>
Provider usernames: {{provusernames}}<br/>
Policy IDs:<br/>
{{#policyids}}
{{id}}: {{agreedon}}<br/>
{{/policyids}}
{{#loginallowed}}
<form action="{{pickurl}}" method="post">
<input type="hidden" name="id" value="{{id}}"/>
Add policy IDs: <input type="text" name="policyids"/><br>
Custom token creation context: <input type="text" name="customcontext"/><br/>
Link all unlinked identities to this account: <input type="checkbox" name="linkall" value="checked" checked/><br/>
<input type="submit" value="Login"/>
</form>
{{/loginallowed}}
<br/>
{{/login}}
<h3>Create account</h3>
<p>
User name is public.<br/>
Display name is public to other system users.<br/>
Email is only visible to you, software acting on your behalf, and system administrators.
</p>
{{#create}}
{{#creationallowed}}
<p>Create an account linked to {{provusername}}</p>
<form action="{{createurl}}" method="post">
User name: <input type="text" name="user" value="{{availablename}}"/><br/>
Display name: <input type="text" name="display" value="{{provfullname}}"/><br/>
Email: <input type="text" name="email" value="{{provemail}}"/><br/>
Policy IDs: <input type="text" name="policyids"/><br>
Custom token creation context: <input type="text" name="customcontext"/><br/>
Link all unlinked identities to this account: <input type="checkbox" name="linkall" value="checked" checked/><br/>
<input type="hidden" name="id" value="{{id}}"/>
<input type="submit" value="Create"/>
</form>
{{/creationallowed}}
{{^creationallowed}}
Provider username: {{provusername}}<br/>
Sorry, account creation is currently disabled.<br/>
{{/creationallowed}}
{{/create}}
</body>
</html>