This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9ad3d70 remove custom endpoints for sign-in/out; rely on asfquart
9ad3d70 is described below
commit 9ad3d70919a05e1ab7a218aed481b11efaeb609e
Author: Greg Stein <[email protected]>
AuthorDate: Mon Sep 29 14:55:57 2025 -0500
remove custom endpoints for sign-in/out; rely on asfquart
---
v3/server/pages.py | 18 ------------------
v3/server/templates/header.ezt | 4 ++--
2 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/v3/server/pages.py b/v3/server/pages.py
index 6f6b262..14088dd 100644
--- a/v3/server/pages.py
+++ b/v3/server/pages.py
@@ -110,24 +110,6 @@ async def settings_page():
return result
[email protected]('/sign-out')
[email protected] # Bare decorator means just require a valid session
-async def sign_out():
- asfquart.session.clear()
-
- # When signing out, go to the Home page.
- return quart.redirect('/')
-
-
[email protected]('/sign-in')
[email protected] # Bare decorator means just require a valid session
-async def sign_in():
- "Forces sign-in (via OAuth), then redirects to the Home page."
-
- # And if we are back here, we are signed-in. Go to the Home page.
- return quart.redirect('/')
-
-
@APP.get('/privacy')
@APP.use_template('templates/privacy.ezt')
async def privacy_page():
diff --git a/v3/server/templates/header.ezt b/v3/server/templates/header.ezt
index fd72de1..e33abc9 100644
--- a/v3/server/templates/header.ezt
+++ b/v3/server/templates/header.ezt
@@ -31,7 +31,7 @@
<li><a class="dropdown-item"
href="/profile">Profile</a></li>
<li><a class="dropdown-item"
href="/settings">Settings</a></li>
<li><hr class="dropdown-divider"></li>
- <li><a class="dropdown-item" href="/sign-out">Sign
Out</a></li>
+ <li><a class="dropdown-item"
href="/auth?logout=/">Sign Out</a></li>
</ul>
</li>
</ul>
@@ -41,7 +41,7 @@
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
- <a class="nav-link" href="/sign-in">Sign In</a>
+ <a class="nav-link" href="/auth?login=/">Sign In</a>
</li>
</ul>
</div>