auth: add logout view

This commit is contained in:
Helmut Merz 2025-05-14 15:51:01 +02:00
parent 992a024de6
commit 4bf3cde5fb
2 changed files with 13 additions and 0 deletions

View file

@ -29,3 +29,10 @@ class CallbackView:
def __call__(self):
oidc.Authenticator(self.request).callback()
return ''
class LogoutView:
def __call__(self):
oidc.Authenticator(self.request).logout()
return ''

View file

@ -14,5 +14,11 @@
class="loops.server.auth.CallbackView"
permission="zope.Public" />
<browser:page
for="zope.interface.Interface"
name="auth_logout"
class="loops.server.auth.LogoutView"
permission="zope.Public" />
</configure>