+
    <	�i³  ã                   óH   € R t ]tRR.t^ RIt ! R R4      t ! R R]4      tR# )a	  Classes to authorize lazr.restfulclient with various web services.

This module includes an authorizer classes for HTTP Basic Auth,
as well as a base-class authorizer that does nothing.

A set of classes for authorizing with OAuth is located in the 'oauth'
module.
ÚBasicHttpAuthorizerÚHttpAuthorizerNc                   ó@   a € ] tR t^%t o RtR tR t]R 4       tRt	V t
R# )r   a§  Handles authentication for HTTP requests.

There are two ways to authenticate.

The authorize_session() method is called once when the client is
initialized. This works for authentication methods like Basic
Auth.  The authorize_request is called for every HTTP request,
which is useful for authentication methods like Digest and OAuth.

The base class is a null authorizer which does not perform any
authentication at all.
c                ó   € R# )z*Set up credentials for the entire session.N© ©ÚselfÚclients   &&ÚG/usr/lib/python3/dist-packages/lazr/restfulclient/authorize/__init__.pyÚauthorizeSessionÚHttpAuthorizer.authorizeSession3   s   € áó    c                ó   € R# )zdSet up credentials for a single request.

This probably involves setting the Authentication header.
Nr   ©r   Úabsolute_uriÚmethodÚbodyÚheaderss   &&&&&r
   ÚauthorizeRequestÚHttpAuthorizer.authorizeRequest7   s   € ñ
 	r   c                ó   € / # )a  Any parameters necessary to identify this user agent.

By default this is an empty dict (because authentication
details don't contain any information about the application
making the request), but when a resource is protected by
OAuth, the OAuth consumer name is part of the user agent.
r   )r   s   &r
   Úuser_agent_paramsÚ HttpAuthorizer.user_agent_params>   s	   € ð ˆ	r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Úpropertyr   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r
   r   r   %   s(   ø‡ € ñòòð ñó ör   c                   ó6   a € ] tR t^Jt o RtR tR tR tRtV t	R# )r   z=Handles authentication for services that use HTTP Basic Auth.c                ó   € Wn         W n        R# )z”Constructor.

:param username: User to send as authorization for all requests.
:param password: Password to send as authorization for all requests.
N)ÚusernameÚpassword)r   r%   r&   s   &&&r
   Ú__init__ÚBasicHttpAuthorizer.__init__M   s   € ð !ŒØ Žr   c                ó˜   € R\         P                  ! V P                  : RV P                  : 24      P	                  4       ,           VR&   R# )ziSet up credentials for a single request.

This sets the authorization header with the username/password.
zBasic Ú:ÚauthorizationN)Úbase64Ú	b64encoder%   r&   Ústripr   s   &&&&&r
   r   Ú$BasicHttpAuthorizer.authorizeRequestV   s;   € ð Ü×ÒØŸ=œ=¨$¯-«-Ð8óç‰e‹gõð 	�Ó r   c                óR   € VP                  V P                  V P                  4       R # )N)Úadd_credentialsr%   r&   r   s   &&r
   r   Ú$BasicHttpAuthorizer.authorizeSessionb   s   € Ø×Ñ˜tŸ}™}¨d¯m©mÖ<r   )r&   r%   N)
r   r   r   r   r   r'   r   r   r   r    r!   s   @r
   r   r   J   s   ø‡ € ÙGò!ò

÷=ð =r   )r   ÚtypeÚ__metaclass__Ú__all__r,   r   r   r   r   r
   Ú<module>r6      s:   ðñ&ð €àØð€ó
 ÷"ñ "ôJ=˜.ö =r   