forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOAuthClient.html
More file actions
117 lines (107 loc) · 5.21 KB
/
Copy pathOAuthClient.html
File metadata and controls
117 lines (107 loc) · 5.21 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
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
111
112
113
114
115
116
117
<div class="row">
<div class="col-sm-7">
<h1 class="pagetitle" translate lib="web">oauthclient</h1>
</div>
</div>
<pre ng-show="ErrorMessage!=null">{{ ErrorMessage }}</pre>
<div ng-show="ctrl.errormessage != ''"" class=" alert alert-danger" role="alert">{{ctrl.errormessage}}</div>
<form ng-submit="ctrl.submit()" class="form-horizontal" role="form" autocomplete="off">
<div class="form-group">
<label for="name" class="col-sm-2 control-label" translate lib="web">name</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.name" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label for="clientId" class="col-sm-2 control-label" translate lib="web">clientId</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.clientId" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label for="clientSecret" class="col-sm-2 control-label" translate lib="web">clientSecret</label> <a href
ng-click="ctrl.CopySecret('.secrettext')">copysecret</a>
<div class="col-sm-4">
<input type="password" ng-model="ctrl.model.clientSecret" class="form-control input-md secrettext"
ng-disabled="ctrl.loading==true" id="clientSecret" copytext />
</div>
</div>
<div class="form-group">
<label for="grants" class="col-sm-2 control-label" translate lib="web">grants</label>
<table style="width: 50%;" class="table table-striped">
<tr ng-repeat="id in ctrl.model.grants">
<td style="width: 15px;"></td>
<td>{{ id }}</td>
<td><a href="" ng-click="ctrl.deletefromarray('grants', id)" translate lib="web">delete</a></td>
</tr>
</table>
</div>
<div class="form-inline">
<div class="mx-sm-3 mb-4">
<input ng-model="newgranttype" type="text" class="form-control" placeholder="New grant type"
autocomplete="new-password">
</div>
<button type="button" class="btn btn-success mb-2" ng-disabled="ctrl.loading==true"
ng-click="ctrl.addtoarray('grants', newgranttype)" translate lib="web">addgrant</button>
</div>
<div class="form-group">
<label for="redirectUris" class="col-sm-2 control-label" translate lib="web">redirecturis</label>
<table style="width: 50%;" class="table table-striped">
<tr ng-repeat="id in ctrl.model.redirectUris">
<td style="width: 15px;"></td>
<td>{{ id }}</td>
<td><a href="" ng-click="ctrl.deletefromarray('redirectUris', id)" translate lib="web">delete</a></td>
</tr>
</table>
</div>
<div class="form-inline">
<div class="mx-sm-3 mb-4">
<input ng-model="newredirecturi" type="text" class="form-control" placeholder="New redirect Uri"
autocomplete="new-password">
</div>
<button type="button" class="btn btn-success mb-2" ng-disabled="ctrl.loading==true"
ng-click="ctrl.addtoarray('redirectUris', newredirecturi)" translate lib="web">addredirecturi</button>
</div>
<div class="form-group">
<label for="defaultrole" class="col-sm-2 control-label" translate lib="web">defaultrole</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.defaultrole" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label for="rolemappings" class="col-sm-2 control-label" translate lib="web">rolemappings</label>
<table style="width: 50%;" class="table table-striped">
<thead>
<tr>
<th></th>
<th><b translate lib="web">openflow role</b></th>
<th><b translate lib="web">target role</b></th>
<th></th>
</tr>
</thead>
<tr ng-repeat="(key, value) in ctrl.model.rolemappings">
<td style="width: 15px;"></td>
<td>{{ key }}</td>
<td>{{ value }}</td>
<td><a href="" ng-click="ctrl.deleterolemapping(key)" translate lib="web">delete</a></td>
</tr>
</table>
</div>
<div class="form-inline">
<div class="mx-sm-3 mb-4">
<input ng-model="newrolemappingname" type="text" class="form-control" placeholder="openflow role name"
autocomplete="new-password">
<input ng-model="newrolemappingvalue" type="text" class="form-control" placeholder="oauth role name"
autocomplete="new-password">
</div>
<button type="button" class="btn btn-success mb-2" ng-disabled="ctrl.loading==true"
ng-click="ctrl.addrolemapping(newrolemappingname, newrolemappingvalue)" translate
lib="web">addrolemapping</button>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" ng-disabled="ctrl.loading==true" class="btn btn-success" translate
lib="web">Save</button>
</div>
</div>
</form>