34 lines
935 B
Plaintext
34 lines
935 B
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Express SSO Demo</title>
|
|
<style>
|
|
body { font-family: sans-serif; text-align: center; padding-top: 50px; }
|
|
.user-info { margin-bottom: 20px; }
|
|
#sso-login-btn, .logout-link {
|
|
padding: 10px 20px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Welcome to the Express SSO Demo</h1>
|
|
|
|
<div class="user-info">
|
|
<% if (user) { %>
|
|
<span>Welcome, <strong><%= user.username %></strong>!</span>
|
|
<p><a href="/logout" class="logout-link">Logout</a></p>
|
|
<% } else { %>
|
|
<p>You are not logged in.</p>
|
|
<button id="sso-login-btn">Login with SSO</button>
|
|
<% } %>
|
|
</div>
|
|
|
|
<script src="/js/sso.js"></script>
|
|
</body>
|
|
</html>
|