https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/contrib/auth/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/contrib/auth/middleware.pyc
�
r�\c@s�ddlmZddlmZddlmZddlmZddlm	Z	d�Z
defd��YZd	efd
��YZ
dS(i����(tauth(tload_backend(tRemoteUserBackend(tImproperlyConfigured(tSimpleLazyObjectcCs+t|d�s$tj|�|_n|jS(Nt_cached_user(thasattrRtget_userR(trequest((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyRstAuthenticationMiddlewarecBseZd�ZRS(cs7t�d�std��t�fd���_dS(Ntsessions�The Django authentication middleware requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'.cs
t��S(N(R((R(s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyt<lambda>s(RtAssertionErrorRtuser(tselfR((Rs@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pytprocess_requests(t__name__t
__module__R(((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyR	stRemoteUserMiddlewarecBs/eZdZdZd�Zd�Zd�ZRS(s�
    Middleware for utilizing Web-server-provided authentication.

    If request.user is not authenticated, then this middleware attempts to
    authenticate the username passed in the ``REMOTE_USER`` request header.
    If authentication is successful, the user is automatically logged in to
    persist the user in the session.

    The header used is configurable and defaults to ``REMOTE_USER``.  Subclass
    this class and change the ``header`` attribute if you need to use a
    different header.
    tREMOTE_USERcCs�t|d�std��ny|j|j}Wn1tk
re|jj�ra|j|�ndSX|jj�r�|jj�|j	||�kr�dS|j|�nt
jd|�}|r�||_t
j||�ndS(NR
s�The Django remote user auth middleware requires the authentication middleware to be installed.  Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.auth.middleware.AuthenticationMiddleware' before the RemoteUserMiddleware class.tremote_user(
RRtMETAtheadertKeyErrorR
tis_authenticatedt_remove_invalid_usertget_usernametclean_usernameRtauthenticatetlogin(RRtusernameR
((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyR(s"
!	cCsJ|jtj}tj|�}y|j|�}Wntk
rEnX|S(ss
        Allows the backend to clean the username, if the backend defines a
        clean_username method.
        (R
RtBACKEND_SESSION_KEYRRtAttributeError(RRRtbackend_strtbackend((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyRNs
cCsfy"t|jjtjd��}Wntk
rBtj|�n Xt|t�rbtj|�ndS(s�
        Removes the current authenticated user in the request which is invalid
        but only if the user is authenticated via the RemoteUserBackend.
        tN(	RR
tgetRRRtlogoutt
isinstanceR(RRtstored_backend((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyR[s"
(RRt__doc__RRRR(((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyRs
	&	
N(tdjango.contribRtdjango.contrib.authRtdjango.contrib.auth.backendsRtdjango.core.exceptionsRtdjango.utils.functionalRRtobjectR	R(((s@/tmp/pip-install-XxeQeY/django/django/contrib/auth/middleware.pyt<module>s	

https://t.me/AnonymousX5 - 2025