Flow test , upgrade...
parent
871ebcb3aa
commit
934f0be6fa
|
@ -18,7 +18,8 @@
|
||||||
<div>
|
<div>
|
||||||
Logged: <span class="text-success" th:text="${#authentication.principal.username}"></span>
|
Logged: <span class="text-success" th:text="${#authentication.principal.username}"></span>
|
||||||
<br/>
|
<br/>
|
||||||
Authorities:<span th:each="authority : ${#authentication.authorities}" th:text="${authority.authority + ' '}"></span>
|
Authorities:<span th:each="authority : ${#authentication.authorities}"
|
||||||
|
th:text="${authority.authority + ' '}"></span>
|
||||||
|
|
||||||
<form th:action="@{/signout}" method="post">
|
<form th:action="@{/signout}" method="post">
|
||||||
<button class="btn btn-info btn-sm" type="submit">Logout</button>
|
<button class="btn btn-info btn-sm" type="submit">Logout</button>
|
||||||
|
@ -35,10 +36,15 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
菜单 Unity 与 Mobile 需要OAuth 验证后才能访问(即受保护的resource); <br/>
|
菜单 Unity 与 Mobile 需要登录认证后才能访问(即受保护的resource); <br/>
|
||||||
Unity 需要 [ROLE_UNITY] 权限, Mobile 需要 [ROLE_MOBILE] 权限.
|
Unity 需要 [ROLE_UNITY] 权限, Mobile 需要 [ROLE_MOBILE] 权限.
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>
|
||||||
|
device_login 用于在设备认证时,输入用户码(user_code)完成授权.
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
在使用之前, 建议先了解OAuth2.1支持的<code>grant_type</code>, 请访问 <a href="https://andaily.com/blog/?p=103"
|
在使用之前, 建议先了解OAuth2.1支持的<code>grant_type</code>, 请访问 <a href="https://andaily.com/blog/?p=103"
|
||||||
|
@ -62,7 +68,7 @@
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
菜单
|
<strong>菜单</strong>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
|
@ -75,17 +81,23 @@
|
||||||
<a th:href="@{client_details}">client_details</a> <span class="text-muted">- 管理ClientDetails</span>
|
<a th:href="@{client_details}">client_details</a> <span class="text-muted">- 管理ClientDetails</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>
|
||||||
|
<a th:href="@{/oauth2/device_verification}">device_login</a> <span
|
||||||
|
class="text-muted">- [device_code]流程中使用</span> <em class="label label-success">OAuth2.1新增</em>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
<li sec:authorize="hasRole('ROLE_ADMIN')">
|
<li sec:authorize="hasRole('ROLE_ADMIN')">
|
||||||
<p>
|
<p>
|
||||||
<a th:href="@{/user/overview}">User</a> <span class="text-muted">- 管理User</span>
|
<a th:href="@{/user/overview}">User</a> <span class="text-muted">- 管理User</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li sec:authorize="hasRole('ROLE_UNITY')">
|
||||||
<p>
|
<p>
|
||||||
<a th:href="@{/unity/dashboard}">Unity</a> <span class="text-muted">- Unity 资源(resource), 需要具有 [ROLE_UNITY] 权限才能访问</span>
|
<a th:href="@{/unity/dashboard}">Unity</a> <span class="text-muted">- Unity 资源(resource), 需要具有 [ROLE_UNITY] 权限才能访问</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li sec:authorize="hasRole('ROLE_MOBILE')">
|
||||||
<p>
|
<p>
|
||||||
<a th:href="@{/m/dashboard}">Mobile</a> <span class="text-muted">- Mobile资源(resource), 需要具有 [ROLE_MOBILE] 权限才能访问</span>
|
<a th:href="@{/m/dashboard}">Mobile</a> <span class="text-muted">- Mobile资源(resource), 需要具有 [ROLE_MOBILE] 权限才能访问</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">Login</div>
|
<div class="panel-heading">[U+P] Login</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
<form th:action="@{/signin}" method="post" class="form-horizontal">
|
<form th:action="@{/signin}" method="post" class="form-horizontal">
|
||||||
|
|
Loading…
Reference in New Issue