detailsinfo.jsp 3.24 KB
Newer Older
1
2
<!DOCTYPE html>

3
<%@ include file="/WEB-INF/jsp/init.jsp" %>
4
5
6
7
8
9
10
11
12
13

<html>
<head>
    <title><spring:message code="oauth-client.page.list.title"/></title>
</head>
<body>
<h1>
    <spring:message code="oauth-client.info"/>
</h1>

Matija Obreza's avatar
Matija Obreza committed
14
<security:authorize access="hasRole('ADMINISTRATOR') or hasPermission(#clientDetails, 'ADMINISTRATION')">
Matija Obreza's avatar
Matija Obreza committed
15
	<a href="<c:url value="/acl/${clientDetails.getClass().name}/${clientDetails.id}/permissions"><c:param name="back">/admin/oauth-clients/${clientDetails.clientId}/</c:param></c:url>" class="close"> <spring:message code="edit-acl" /></a>
Matija Obreza's avatar
Matija Obreza committed
16
	<a href="<c:url value="/admin/oauth-clients/${clientDetails.clientId}/edit" />" class="close">
Matija Obreza's avatar
Matija Obreza committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
		<spring:message code="edit" />
	</a>
</security:authorize>


<div class="row">
    <label class="col-lg-2 control-label"><spring:message code="oauth-client.title"/></label>
    <div class="col-lg-10"><c:out value="${clientDetails.title}" /></div>
</div>
<div class="row">
    <label class="col-lg-2 control-label"><spring:message code="oauth-client.description"/></label>
    <div class="col-lg-10"><c:out value="${clientDetails.description}" /></div>
</div>
<div class="row">
    <label class="col-lg-2 control-label"><spring:message code="oauth-client.id"/></label>
Matija Obreza's avatar
Matija Obreza committed
32
    <div class="col-lg-10"><c:out value="${clientDetails.clientId}" /></div>
33
</div>
Matija Obreza's avatar
Matija Obreza committed
34
35
<div class="row">
    <label class="col-lg-2 control-label"><spring:message code="oauth-client.secret"/></label>
Matija Obreza's avatar
Matija Obreza committed
36
    <div class="col-lg-10"><c:out value="${clientDetails.clientSecret}" /></div>
Matija Obreza's avatar
Matija Obreza committed
37
38
39
40
41
</div>

<security:authorize access="hasRole('ADMINISTRATOR')">
    <h3><spring:message code="client.details.token.list"/></h3>

Matija Obreza's avatar
Matija Obreza committed
42
	<a href="<c:url value="/admin/oauth-clients/${clientDetails.clientId}/removeall"/> "><spring:message
Matija Obreza's avatar
Matija Obreza committed
43
44
45
46
47
48
                code="oauth-client.remove.all"/></a>
    <table class="accessions">
        <tbody>
        <c:forEach items="${accessTokens}" var="accessToken">
            <tr class="">
				<td><fmt:formatDate value="${accessToken.expiration}" type="both" /></td>
Matija Obreza's avatar
Matija Obreza committed
49
                <td><c:out value="${jspHelper.userByUuid(accessToken.username).email}"/></td>
Matija Obreza's avatar
Matija Obreza committed
50
                <td>
Matija Obreza's avatar
Matija Obreza committed
51
                    <a href="<c:url value="/admin/oauth-clients/${clientDetails.clientId}/${accessToken.id}/remove"/> "><spring:message
Matija Obreza's avatar
Matija Obreza committed
52
53
54
55
56
57
                            code="oauth-client.remove"/></a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
Matija Obreza's avatar
Matija Obreza committed
58

Matija Obreza's avatar
Matija Obreza committed
59
60
    <h3><spring:message code="client.details.refresh-token.list"/></h3>

Matija Obreza's avatar
Matija Obreza committed
61
    <a href="<c:url value="/admin/oauth-clients/${clientDetails.clientId}/removeall-rt"/> "><spring:message
Matija Obreza's avatar
Matija Obreza committed
62
63
64
65
66
67
            code="oauth-client.remove.all"/></a>
    <table class="accessions">
        <tbody>
        <c:forEach items="${refreshTokens}" var="refreshToken">
            <tr class="">
                <td><fmt:formatDate value="${refreshToken.expiration}" type="both" /></td>
Matija Obreza's avatar
Matija Obreza committed
68
                <td><c:out value="${jspHelper.userByUuid(refreshToken.username).email}"/></td>
Matija Obreza's avatar
Matija Obreza committed
69
                <td>
Matija Obreza's avatar
Matija Obreza committed
70
                    <a href="<c:url value="/admin/oauth-clients/${clientDetails.clientId}/${refreshToken.id}/remove-rt"/> "><spring:message
Matija Obreza's avatar
Matija Obreza committed
71
72
73
74
75
76
77
                            code="oauth-client.remove"/></a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</security:authorize>
78
79
80
81


</body>
</html>