Your IP : 216.73.216.213
B
;��]� � @ s` d Z ddlmZmZ ddlZddlmZ ddlmZm Z ddl
mZ ee�G dd� de��Z
dS ) z�
HTTP BASIC authentication.
@see: U{http://tools.ietf.org/html/rfc1945}
@see: U{http://tools.ietf.org/html/rfc2616}
@see: U{http://tools.ietf.org/html/rfc2617}
� )�division�absolute_importN)�implementer)�credentials�error)�ICredentialFactoryc @ s, e Zd ZdZdZdd� Zdd� Zdd� Zd S )
�BasicCredentialFactoryz�
Credential Factory for HTTP Basic Authentication
@type authenticationRealm: L{bytes}
@ivar authenticationRealm: The HTTP authentication realm which will be issued in
challenges.
s basicc C s
|| _ d S )N)�authenticationRealm)�selfr � r �J/opt/alt/python37/lib64/python3.7/site-packages/twisted/web/_auth/basic.py�__init__# s zBasicCredentialFactory.__init__c C s
d| j iS )zy
Return a challenge including the HTTP authentication realm with which
this factory was created.
�realm)r )r
�requestr r r �getChallenge'