Source code for univention.portal.handlers.auth_handlers
# Univention Portal
#
# SPDX-FileCopyrightText: 2019-2025 Univention GmbH
# SPDX-License-Identifier: AGPL-3.0-only
from univention.portal.handlers.portal_resource import PortalResource
[docs]
class LoginHandler(PortalResource):
[docs]
async def post(self, portal_name):
portal = self.find_portal()
await portal.login_user(self)
[docs]
async def get(self, portal_name):
portal = self.find_portal()
await portal.login_request(self)
[docs]
class LogoutHandler(PortalResource):
[docs]
async def get(self, portal_name):
portal = self.find_portal()
await portal.logout_user(self)