
    Xh                     @    d Z ddlmZ ddlmZ  G d de      ZdefgZy)	z7Tornado handlers for logging out of the Jupyter Server.   )JupyterHandler   )allow_unauthenticatedc                        e Zd ZdZed        Zy)LogoutHandlerzAn auth logout handler.c                     | j                   j                  |        | j                  rddi}nddi}| j                  | j	                  d|             y)zHandle a logout.infozSuccessfully logged out.warningz:Cannot log out. Jupyter Server authentication is disabled.zlogout.html)messageN)identity_providerclear_login_cookielogin_availablewriterender_template)selfr   s     N/var/www/html/myenv/lib/python3.12/site-packages/jupyter_server/auth/logout.pygetzLogoutHandler.get   sS     	11$79:G "^_G

4''w'GH    N)__name__
__module____qualname____doc__r   r    r   r   r   r   	   s    !I Ir   r   z/logoutN)r   base.handlersr   	decoratorr   r   default_handlersr   r   r   <module>r      s.    = + ,IN I  /0 r   