A Pedestal interceptor for authorizing Protojure GRPC endpoints
A [Pedestal](http://pedestal.io/) [interceptor](http://pedestal.io/reference/interceptors) for authorizing Protojure GRPC endpoints
(interceptor m pred)
Installs a predicate function to authorize requests.
Arguments:
m
: rpc-metadata as generated by protojure compiler. Can either be directly submitted as generated, or as a vector
of 1 or more instances to support multiple interfaces.Installs a predicate function to authorize requests. Arguments: - `m`: rpc-metadata as generated by protojure compiler. Can either be directly submitted as generated, or as a vector of 1 or more instances to support multiple interfaces. - 'pred': An arity-1 predicate function that accepts a pedestal request map as input. Evaluating to true signals that the call is authorized, and should continue. Evaluating to false stops further execution and triggers a permission denied response. The request-map is augmented with :grpc-requestinfo containing the :pkg, :service, and :method of the call.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close