Files
server-side-login-demo/views/index.ejs
2026-05-06 14:35:49 +09:00

26 lines
1.2 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<title>Baron SSO Server-Side Demo</title>
<style>
body { font-family: sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; margin: 0; background-color: #f0f2f5; }
.container { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; }
.btn { display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 4px; margin-top: 1rem; }
.btn:hover { background-color: #0056b3; }
</style>
</head>
<body>
<div class="container">
<h1>Baron SSO Server-Side Demo</h1>
<% if (user) { %>
<p>로그인됨: <strong><%= user.userinfo.name || user.userinfo.sub %></strong></p>
<a href="/profile" class="btn">프로필 보기</a>
<a href="/logout" class="btn" style="background-color: #6c757d;">로그아웃</a>
<% } else { %>
<p>현재 로그인되지 않았습니다.</p>
<a href="/login" class="btn">Baron SSO로 로그인</a>
<% } %>
</div>
</body>
</html>