* splits konova/views.py into separate files in new module * view files can now be found in /konova/views/... * introduces first class based view AbstractLogView * implemented for Ema, Intervention, Compensation and EcoAccount
27 lines
621 B
Python
27 lines
621 B
Python
"""
|
|
Author: Michel Peltriaux
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
Contact: ksp-servicestelle@sgdnord.rlp.de
|
|
Created on: 19.08.22
|
|
|
|
"""
|
|
from django.contrib.auth import logout
|
|
from django.http import HttpRequest
|
|
from django.shortcuts import redirect
|
|
|
|
from konova.sub_settings.sso_settings import SSO_SERVER_BASE
|
|
|
|
|
|
def logout_view(request: HttpRequest):
|
|
"""
|
|
Logout route for ending the session manually.
|
|
|
|
Args:
|
|
request (HttpRequest): The used request object
|
|
|
|
Returns:
|
|
A redirect
|
|
"""
|
|
logout(request)
|
|
return redirect(SSO_SERVER_BASE)
|