Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.412 2001/01/19 21:20:16 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.413 2001/01/21 21:56:49 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>         #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:642:      public User authenticate( RequestID id,    UserDB|void database,    AuthModule|void method )   //! Try to authenticate the request with users from the specified user   //! database. If no @[database] is specified, all datbases in the   //! current configuration are searched in priority order, then the   //! configuration user database. Same goes for the @[method].   //!   //! The return value is the autenticated user. + //! id->misc->authenticated_user is always set to the return value.   {    User u;    if( method ) -  return method->authenticate( id, database ); +  return id->misc->authenticated_user = method->authenticate( id, database );    else    foreach( auth_modules(), method ) -  if( u = method->authenticate( id, database ) ) -  return u; +  if( u = method->authenticate( id, database ) ) +  return id->misc->authenticated_user = u;   }      public mapping authenticate_throw( RequestID id, string realm,    UserDB|void database,    AuthModule|void method)   //! Returns a reply mapping, similar to @[Roxen.http_rxml_reply] with   //! friends. If no @[database] is specified, all datbases in the   //! current configuration are searched in priority order, then the   //! configuration user database. Same goes for the @[method]   {