| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/lazr/restfulclient/authorize/ |
Upload File : |
ó
BÔLc @ sE d Z e Z d d g Z d d d „ ƒ YZ d e f d „ ƒ YZ d S( s 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.
t BasicHttpAuthorizert HttpAuthorizerc B s/ e Z d Z d „ Z d „ Z e d „ ƒ Z RS( sÇ 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 C s d S( s* Set up credentials for the entire session.N( ( t selft client( ( sI /usr/lib/python2.7/dist-packages/lazr/restfulclient/authorize/__init__.pyt authorizeSession/ s c C s d S( st Set up credentials for a single request.
This probably involves setting the Authentication header.
N( ( R t absolute_urit methodt bodyt headers( ( sI /usr/lib/python2.7/dist-packages/lazr/restfulclient/authorize/__init__.pyt authorizeRequest3 s c C s i S( sG 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 ( ( sI /usr/lib/python2.7/dist-packages/lazr/restfulclient/authorize/__init__.pyt user_agent_params: s ( t __name__t
__module__t __doc__R R t propertyR
( ( ( sI /usr/lib/python2.7/dist-packages/lazr/restfulclient/authorize/__init__.pyR "