Browse Source

html update flow

pull/4/head
shengzhaoli.shengz 1 year ago
parent
commit
2370fb24cc
  1. 3
      src/main/resources/templates/clientdetails/test_client.html
  2. 16
      src/main/resources/templates/index.html

3
src/main/resources/templates/clientdetails/test_client.html

@ -268,7 +268,8 @@
<button class="btn btn-link" type="submit">
/oauth2/token?client_id={{clientId}}&client_secret={{clientSecret}}&grant_type=refresh_token&refresh_token={{refreshToken}}
</button>
<span class="label label-warning">POST</span> |
<span class="label label-warning">POST</span>
<br/>
<span class="text-muted">复用refresh_token: <span class="text-info"
th:text="${clientDetailsDto.tokenSettings.reuseRefreshTokens}"></span></span>
</form>

16
src/main/resources/templates/index.html

@ -27,7 +27,7 @@
</div>
<br/>
<div>
操作说明:
<strong class="text-muted">操作说明</strong>
<ol>
<li>
<p>
@ -105,20 +105,6 @@
</ul>
<br/>
<div class="well well-sm">
<p>
<strong>说明</strong>: Unity与Mobile菜单需要先获取到<code>access_token</code>后才能正常访问; 可以尝试在URL后面任意添加access_token参数值试试效果,
<br/>
如: <a th:href="@{/m/dashboard?access_token=i_am_testing_access_token}">/m/dashboard?access_token=i_am_testing_access_token</a>
</p>
<p>
请求受保护的资源时传递
<mark>Access Token</mark>
有两种方式, 方式一在URL参数中添加<code>access_token</code>, 方式二在请求的Header中添加 <em>Authorization</em>, 其值为 <em>Bearer
your_access_token</em>【推荐方式二】
</p>
</div>
<div th:replace="~{fragments/main :: footer}"/>
</body>

Loading…
Cancel
Save