Liking cljdoc? Tell your friends :D

protojure.pedestal.interceptors.authz

A Pedestal interceptor for authorizing Protojure GRPC endpoints

A [Pedestal](http://pedestal.io/) [interceptor](http://pedestal.io/reference/interceptors) for authorizing Protojure GRPC endpoints
raw docstring

->metadataclj

(->metadata m)
source

interceptorclj

(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.
  • '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.
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.

sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close