auth: add logout view
This commit is contained in:
parent
992a024de6
commit
4bf3cde5fb
2 changed files with 13 additions and 0 deletions
|
@ -29,3 +29,10 @@ class CallbackView:
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
oidc.Authenticator(self.request).callback()
|
oidc.Authenticator(self.request).callback()
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
class LogoutView:
|
||||||
|
|
||||||
|
def __call__(self):
|
||||||
|
oidc.Authenticator(self.request).logout()
|
||||||
|
return ''
|
||||||
|
|
|
@ -14,5 +14,11 @@
|
||||||
class="loops.server.auth.CallbackView"
|
class="loops.server.auth.CallbackView"
|
||||||
permission="zope.Public" />
|
permission="zope.Public" />
|
||||||
|
|
||||||
|
<browser:page
|
||||||
|
for="zope.interface.Interface"
|
||||||
|
name="auth_logout"
|
||||||
|
class="loops.server.auth.LogoutView"
|
||||||
|
permission="zope.Public" />
|
||||||
|
|
||||||
</configure>
|
</configure>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue