(file) Return to AuthenticationManager.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Security / Authentication

Diff for /pegasus/src/Pegasus/Security/Authentication/AuthenticationManager.cpp between version 1.32 and 1.32.2.1

version 1.32, 2007/08/22 07:43:38 version 1.32.2.1, 2007/09/12 23:56:25
Line 39 
Line 39 
  
 #include <Pegasus/Config/ConfigManager.h> #include <Pegasus/Config/ConfigManager.h>
  
   #ifdef PEGASUS_ENABLE_LOCAL_AUTHENTICATION
 #include "LocalAuthenticationHandler.h" #include "LocalAuthenticationHandler.h"
   #endif
   
 #include "BasicAuthenticationHandler.h" #include "BasicAuthenticationHandler.h"
 #include "AuthenticationManager.h" #include "AuthenticationManager.h"
  
Line 65 
Line 68 
     //     //
     // get authentication handlers     // get authentication handlers
     //     //
   #ifdef PEGASUS_ENABLE_LOCAL_AUTHENTICATION
     _localAuthHandler = _getLocalAuthHandler();     _localAuthHandler = _getLocalAuthHandler();
   #endif
  
     _httpAuthHandler = _getHttpAuthHandler();     _httpAuthHandler = _getHttpAuthHandler();
  
Line 83 
Line 88 
     //     //
     // delete authentication handlers     // delete authentication handlers
     //     //
   #ifdef PEGASUS_ENABLE_LOCAL_AUTHENTICATION
     delete _localAuthHandler;     delete _localAuthHandler;
   #endif
     delete _httpAuthHandler;     delete _httpAuthHandler;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
Line 173 
Line 180 
     return authenticated;     return authenticated;
 } }
  
   #ifdef PEGASUS_ENABLE_LOCAL_AUTHENTICATION
   
 // //
 // Perform pegasus sepcific local authentication // Perform pegasus sepcific local authentication
 // //
Line 208 
Line 217 
     // requests get here.     // requests get here.
     PEGASUS_ASSERT(authType == "Local");     PEGASUS_ASSERT(authType == "Local");
  
     authenticated =      authenticated = _localAuthHandler->authenticate(cookie, authInfo);
         _localAuthHandler->authenticate(cookie, authInfo);  
  
     if ( authenticated )     if ( authenticated )
     {     {
Line 221 
Line 229 
     return authenticated;     return authenticated;
 } }
  
   #endif /* PEGASUS_ENABLE_LOCAL_AUTHENTICATION */
   
 // //
 // Validate user. // Validate user.
 // //
Line 229 
Line 239 
     return _httpAuthHandler->validateUser(userName);     return _httpAuthHandler->validateUser(userName);
 } }
  
   #ifdef PEGASUS_ENABLE_LOCAL_AUTHENTICATION
   
 // //
 // Get pegasus/local authentication response header // Get pegasus/local authentication response header
 // //
Line 270 
Line 282 
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
     return respHeader;     return respHeader;
   
 } }
  
   #endif /* PEGASUS_ENABLE_LOCAL_AUTHENTICATION */
   
 // //
 // Get HTTP authentication response header // Get HTTP authentication response header
 // //
Line 298 
Line 311 
     return respHeader;     return respHeader;
 } }
  
   #ifdef PEGASUS_ENABLE_LOCAL_AUTHENTICATION
   
 // //
 // Get local authentication handler // Get local authentication handler
 // //
Line 313 
Line 328 
     return new LocalAuthenticationHandler();     return new LocalAuthenticationHandler();
 } }
  
   #endif /* PEGASUS_ENABLE_LOCAL_AUTHENTICATION */
   
  
 // //
 // Get Http authentication handler // Get Http authentication handler


Legend:
Removed from v.1.32  
changed lines
  Added in v.1.32.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2