first commit
This commit is contained in:
25
views/index.ejs
Normal file
25
views/index.ejs
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Baron SSO Login 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 Demo</h1>
|
||||
<% if (user) { %>
|
||||
<p>Welcome, <strong><%= user.userinfo.name || user.userinfo.sub %></strong>!</p>
|
||||
<a href="/profile" class="btn">View Profile</a>
|
||||
<a href="/logout" class="btn" style="background-color: #6c757d;">Logout</a>
|
||||
<% } else { %>
|
||||
<p>You are not logged in.</p>
|
||||
<a href="/login" class="btn">Login with Baron SSO</a>
|
||||
<% } %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user