blob: 6da5b2f0846e8e9cc9c2ccb8cc267fb410aa2713 (
plain)
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
|
{%extends "base.html"%}
{%block title%}gn-auth: OAuth2 Clients{%endblock%}
{%block pagetitle%}OAuth2 Clients{%endblock%}
{%block content%}
{{flash_messages()}}
<table class="table table-hover table-striped cell-border no-footer">
<caption>List of registered OAuth2 clients</caption>
<thead>
<tr>
<th>Client ID</th>
<th>Client Name</th>
<th>Default Redirect URI</th>
<th>Owner</th>
<th colspan="3">Actions</th>
</tr>
</thead>
<tbody>
{%for client in clients%}
<tr>
<td>{{client.client_id}}</td>
<td>{{client.client_metadata.client_name}}</td>
<td>{{client.client_metadata.default_redirect_uri}}</td>
<td>{{client.user.name}} ({{client.user.email}})</td>
<td>
<a href="{{url_for('oauth2.admin.view_client', client_id=client.client_id)}}"
title"View/Edit client {{client.client_metadata.client_name}}"
class="btn btn-info">
View/Edit
</a>
</td>
<td>
<form id="frm:delete:{{client.client_id}}"
action="{{url_for('oauth2.admin.delete_client')}}"
method="POST">
<input type="hidden" name="client_id" value="{{client.client_id}}" />
<input type="submit" value="Delete"
title"Delete client {{client.client_metadata.client_name}}"
class="btn btn-danger" />
</form>
</td>
<td>
<a href="{{url_for('oauth2.admin.change_client_secret',
client_id=client.client_id)}}"
title="Change the client secret!"
class="btn btn-danger">
Change Secret
</a>
</td>
</tr>
{%else%}
<tr>
<td colspan="4" style="text-align: center;">
No registered OAuth2 clients!
</td>
</tr>
{%endfor%}
</tbody>
</table>
{%endblock%}
|