Skip to content

Instantly share code, notes, and snippets.

@yamabicodev
Last active December 21, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamabicodev/c88ab8f50f3987612b77fcaaee5d3844 to your computer and use it in GitHub Desktop.
Save yamabicodev/c88ab8f50f3987612b77fcaaee5d3844 to your computer and use it in GitHub Desktop.
Spring Security Oauth client sample
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8"/>
:省略
</head>
<body>
:省略
<div class="main-wrap">
<div class="login-form">
<h3>ログイン</h3>
<div class="login-button">
<!-- リンク先を「/oauth2/authorization/{registration ID}」にすること -->
<a th:href="@{/oauth2/authorization/github}">
<span><i class="fab fa-github"></i>GitHubでログイン</span>
</a>
</div>
</div>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment