Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
PluggableAuthService.PluggableAuthService.DumbHTTPExtractor Class Reference
Inheritance diagram for PluggableAuthService.PluggableAuthService.DumbHTTPExtractor:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.PluggableAuthService.DumbHTTPExtractor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def extractCredentials

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 112 of file PluggableAuthService.py.


Member Function Documentation

Pull HTTP credentials out of the request.

Definition at line 117 of file PluggableAuthService.py.

00117 
00118     def extractCredentials( self, request ):
00119 
00120         """ Pull HTTP credentials out of the request.
00121         """
00122         creds = {}
00123         login_pw = request._authUserPW()
00124 
00125         if login_pw is not None:
00126             name, password = login_pw
00127 
00128             creds[ 'login' ] = name
00129             creds[ 'password' ] = password
00130             creds[ 'remote_host' ] = request.get( 'REMOTE_HOST', '' )
00131 
00132             try:
00133                 creds[ 'remote_address' ] = request.getClientAddr()
00134             except AttributeError:
00135                 creds[ 'remote_address' ] = request.get( 'REMOTE_ADDR', '' )
00136 
00137         return creds
00138 
00139 classImplements( DumbHTTPExtractor
00140                , ILoginPasswordHostExtractionPlugin
00141                )
00142 
00143 InitializeClass( DumbHTTPExtractor )
00144 

Here is the call graph for this function:


Member Data Documentation

Definition at line 114 of file PluggableAuthService.py.


The documentation for this class was generated from the following file: