提交 fa1bb122 编写于 作者: K kohsuke

added a diagnostics page for authentication related trouble-shooting

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13088 71c3de6d-444a-0410-be80-ed276b4c234a
上级 59d59407
<!-- show debug information about the current user -->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
<l:layout>
<st:include page="sidepanel.jelly" />
<l:main-panel>
<j:set var="auth" value="${app.authentication}" />
<h1>Who Am I?</h1>
<table>
<tr>
<td>Name:</td>
<td>${auth.name}</td>
</tr>
<tr>
<td>IsAuthenticated?:</td>
<td>${auth.authenticated}</td>
</tr>
<tr>
<td>Authorities:</td>
<td>
<ul>
<j:forEach var="a" items="${auth.authorities}">
<li>
<j:choose>
<j:when test="${a==null}">
null
</j:when>
<j:otherwise>
"${a}"
</j:otherwise>
</j:choose>
</li>
</j:forEach>
</ul>
</td>
</tr>
<tr>
<td>Details:</td>
<td>${auth.details}</td>
</tr>
<tr>
<td>toString:</td>
<td>${auth}</td>
</tr>
</table>
</l:main-panel>
</l:layout>
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册