17 #ifndef __AUTHORIZER_AUTHORIZER_HPP__
18 #define __AUTHORIZER_AUTHORIZER_HPP__
39 class LocalAuthorizerProcess;
66 const authorization::Request&
request);
70 const authorization::Action& action);
77 LocalAuthorizerProcess* process;
83 #endif // __AUTHORIZER_AUTHORIZER_HPP__
Definition: option.hpp:28
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
virtual process::Future< bool > authorized(const authorization::Request &request)
Checks with the identity server back end whether request is allowed by the policies of the identity s...
Definition: authorizer.hpp:42
static Try< Authorizer * > create(const ACLs &acls)
This interface is used to enable an identity service or any other back end to check authorization pol...
Definition: authorizer.hpp:243
virtual process::Future< process::Owned< ObjectApprover > > getObjectApprover(const Option< authorization::Subject > &subject, const authorization::Action &action)
Creates an ObjectApprover which can synchronously check authorization on an object.
virtual ~LocalAuthorizer()