
    fO                     h    d dl mZmZmZ d dlZd dlmZ d dlT  G d dej	        j
        e          ZdS )    )requestredirectmake_responseN)ResponseMixin)*c                   <    e Zd ZdZej        j        d             ZdS )SignOutViewz/signoutc           
         t           j        j        rTt           j        rt           j        j        rt           j        j                            ddg           t          j        rt          j        }nt                      }t           j        j        j	        dk    r?t           j        j        
                    t           j        |           t          |          }nt           j        j        
                    t           j        |          }nt          j                            d          }|r!t          t                       d|           }n=t          t                       d          }nt          t                       d          }t          j                            dd	d
dt           j        j        t           j        j        t           j        d           |                     |          S )Nr   zplugin.*keycloaknext_urlzauth/signin?next_url=zauth/signinzservicedesk/auth/signinlogoutCmfAuthokT   )operatecmf_model_nameresult_statuscurrent_transactionparent_nameparent_codeparentsecurity_level)gcurrent_person
user_localsessionpluginload_fieldsr   referrerauth_base_hrefapp_typer   r   valuesgetmodelsCmfAuditaudit_eventcurrent_userlogin_ok)selfr   responses      ./modules/auth/views/signout.pyr#   zSignOutView.get   s   & 	Ny JQY- J	 ,,c:->???# 0&/HH-//H9#,
::I$++AIx@@@'11HH y/66qy(KKHH">--j99 J'>+;+;(\(\RZ(\(\]]HH'>+;+;(H(H(HIIHH>#3#3 L L LMMH##HY26D010DRSR`Rf+,>! 	$ 	M 	M 	M xx!!!    N)__name__
__module____qualname____url__cmfviewsactionr#    r-   r,   r	   r	      s8        GY" " " " "r-   r	   )flaskr   r   r   	cmf.viewsr2   modules.auth.views.responser   cmf.includer3   BaseViewr	   r5   r-   r,   <module>r;      s    2 2 2 2 2 2 2 2 2 2     5 5 5 5 5 5    " " " " "#)$m " " " " "r-   