First commit
This commit is contained in:
33
sso-demo/views/index.ejs
Normal file
33
sso-demo/views/index.ejs
Normal file
@@ -0,0 +1,33 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user