29 lines
888 B
HTML
29 lines
888 B
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
|
|
<head>
|
|
<title>Spring Security - OAuth 2.0 Authorization Code Grant</title>
|
|
<meta charset="utf-8" />
|
|
</head>
|
|
<body>
|
|
<div style="float: right" th:fragment="logout" sec:authorize="isAuthenticated()">
|
|
<div style="float:left">
|
|
<span style="font-weight:bold">User: </span><span sec:authentication="name"></span>
|
|
</div>
|
|
<div style="float:none"> </div>
|
|
<div style="float:right">
|
|
<form action="#" th:action="@{/logout}" method="post">
|
|
<input type="submit" value="Logout" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<h1>GitHub Repositories</h1>
|
|
<div>
|
|
<ul>
|
|
<li th:each="repo : ${repos}">
|
|
<span style="font-weight:bold" th:text="${repo.name}"></span>: <span th:text="${repo.url}"></span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|