![]() |
XRootD
|
#include <XrdMacaroonsHandler.hh>
Public Types | |
enum | AuthzBehavior { PASSTHROUGH , ALLOW , DENY } |
Public Member Functions | |
Handler (XrdSysError *log, const char *config, XrdOucEnv *myEnv, XrdAccAuthorize *chain) | |
virtual | ~Handler () |
virtual int | Init (const char *cfgfile) override |
Initializes the external request handler. More... | |
virtual bool | MatchesPath (const char *verb, const char *path) override |
Tells if the incoming path is recognized as one of the paths that have to be processed. More... | |
virtual int | ProcessReq (XrdHttpExtReq &req) override |
![]() | |
XrdHttpExtHandler () | |
Constructor. More... | |
virtual | ~XrdHttpExtHandler () |
Destructor. More... | |
Static Public Member Functions | |
static bool | Config (const char *config, XrdOucEnv *env, XrdSysError *log, std::string &location, std::string &secret, ssize_t &max_duration, AuthzBehavior &behavior) |
Definition at line 39 of file XrdMacaroonsHandler.hh.
|
inline |
Definition at line 41 of file XrdMacaroonsHandler.hh.
References Config().
|
virtual |
Definition at line 124 of file XrdMacaroonsHandler.cc.
|
static |
Definition at line 39 of file XrdMacaroonsConfigure.cc.
References XrdOucStream::Attach(), XrdOucStream::Capture(), XrdOucStream::Echo(), XrdSysError::Emsg(), Macaroons::Error, XrdOucStream::GetMyFirstWord(), open(), XrdSysError::Say(), XrdSysError::setMsgMask(), Warning, and xonmissing().
Referenced by Macaroons::Authz::Authz(), and Handler().
|
inlineoverridevirtual |
Initializes the external request handler.
Implements XrdHttpExtHandler.
Definition at line 65 of file XrdMacaroonsHandler.hh.
|
overridevirtual |
Tells if the incoming path is recognized as one of the paths that have to be processed.
Implements XrdHttpExtHandler.
Definition at line 195 of file XrdMacaroonsHandler.cc.
|
overridevirtual |
Process an HTTP request and send the response using the calling XrdHttpProtocol instance directly Returns 0 if ok, non0 if errors
Implements XrdHttpExtHandler.
Definition at line 365 of file XrdMacaroonsHandler.cc.
References XrdHttpExtReq::BuffgetData(), XrdOucTUtils::caseInsensitiveFind(), determine_validity(), XrdHttpExtReq::headers, XrdHttpExtReq::resource, and XrdHttpExtReq::SendSimpleResp().