-
Notifications
You must be signed in to change notification settings - Fork 224
/
authorization.html
110 lines (110 loc) · 6.12 KB
/
authorization.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!--
~ Copyright (c) 2022 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0
~
~ SPDX-License-Identifier: EPL-2.0
-->
<div id="authorizationModal" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
Authorize
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<div class="row">
<h5>Main authentication</h5>
<hr />
<div class="row">
<div class="col-md-5">
<input type="radio" id="main-userpass" name="main-auth" value="basic" />
<label for="main-userpass">Basic</label>
</div>
<div class="col-md-7">
<div class="input-group input-group-sm mb-1">
<label for="userName" class="input-group-text">Username</label>
<input type="text" class="form-control form-control-sm" id="userName" name="username" />
</div>
<div class="input-group input-group-sm mb-1">
<label for="password" class="input-group-text">Password</label>
<input type="password" class="form-control form-control-sm" id="password" name="password" />
</div>
</div>
</div>
<div class="row pt-2">
<div class="col-md-5">
<input type="radio" id="main-bearer" name="main-auth" value="bearer"></input>
<label for="main-bearer">Bearer<br /><small>(JWT OAuth2.0 Bearer token)</small></label>
</div>
<div class="col-md-7">
<div class="input-group input-group-sm mb-1">
<label for="bearer" class="input-group-text">Bearer</label>
<input type="password" class="form-control form-control-sm" id="bearer" name="bearer" />
</div>
</div>
</div>
<div class="row pt-2">
<div class="col-md-5">
<input type="radio" id="main-pre" name="main-auth" value="pre" />
<label for="main-pre">Pre authenticated<br />
<small>(via HTTP header 'x-ditto-pre-authenticated', must take the form
<code>prefix:suffix</code>)</small>
</label>
</div>
<div class="col-md-7">
<div class="input-group input-group-sm mb-1">
<label for="dittoPreAuthenticatedUsername" class="input-group-text">prefix:suffix</label>
<input type="text" class="form-control form-control-sm" id="dittoPreAuthenticatedUsername" name="pre-authenticated-username" />
</div>
</div>
</div>
</div>
<div class="row mt-3">
<h5>DevOps authentication</h5>
<small>(for Connections and administrative tasks, optional)</small>
<hr />
<div class="row">
<div class="col-md-5">
<input type="radio" id="devops-userpass" name="devops-auth" value="basic" />
<label for="devops-userpass">Basic<br /></label>
</div>
<div class="col-md-7">
<div class="input-group input-group-sm mb-1">
<label for="devOpsUserName" class="input-group-text">DevOps Username</label>
<input type="text" class="form-control form-control-sm" id="devOpsUserName" name="username" />
</div>
<div class="input-group input-group-sm mb-1">
<label for="devOpsPassword" class="input-group-text">DevOps Password</label>
<input type="password" class="form-control form-control-sm" id="devOpsPassword" name="password" />
</div>
</div>
</div>
<div class="row pt-2">
<div class="col-md-5">
<input type="radio" id="devops-bearer" name="devops-auth" value="bearer" />
<label for="devops-bearer">Bearer<br /><small>(JWT OAuth2.0 Bearer token)</small></label>
</div>
<div class="col-md-7">
<div class="input-group input-group-sm mb-1">
<label for="bearerDevOps" class="input-group-text">DevOps Bearer</label>
<input type="password" class="form-control form-control-sm" id="bearerDevOps" name="devops-bearer" />
</div>
<div class="input-group input-group-sm mb-1">
</div>
</div>
</div>
</div>
<div class="input-group input-group-sm" style="flex-direction: row-reverse;">
<button class="btn btn-outline-secondary btn-sm" data-bs-dismiss="modal"
id="authorizeSubmit">Authorize</button>
</div>
</div>
</div>
</div>
</div>