17 #ifndef __AUTHORIZER_AUTHORIZER_HPP__ 18 #define __AUTHORIZER_AUTHORIZER_HPP__ 39 class LocalAuthorizerProcess;
66 const authorization::Request&
request)
override;
70 const authorization::Action& action)
override;
78 LocalAuthorizerProcess*
process;
84 #endif // __AUTHORIZER_AUTHORIZER_HPP__ Definition: option.hpp:29
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...
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:268
~LocalAuthorizer() override
process::Future< std::shared_ptr< const ObjectApprover > > getApprover(const Option< authorization::Subject > &subject, const authorization::Action &action) override
Returns an ObjectApprover which can synchronously check authorization on an object.
Definition: attributes.hpp:24
Definition: executor.hpp:48
process::Future< bool > authorized(const authorization::Request &request) override
Checks with the identity server back end whether request is allowed by the policies of the identity s...