(decode-interceptor get-keyset-fn
                    &
                    {:keys [required? check-header unauthorized async?
                            keyset-blocking?]
                     :or {required? true
                          check-header "authorization"
                          unauthorized default-unauthorized
                          async? false
                          keyset-blocking? false}})Given a function that returns a map of public keys, return an interceptor that decodes claims and stores them on the context as :com.yetanalytics.pedestal-oidc/claims.
If :async? is true, the function is expected to return a channel unless :keyset-blocking? is also true in which case it will be run in a thread.
Other options:
:required? - Return a 401 unless valid claims are present :unauthorized - A function that will receive the context map to handle a 401 :check-header - the header to check for the access token
Given a function that returns a map of public keys, return an interceptor that decodes claims and stores them on the context as :com.yetanalytics.pedestal-oidc/claims. If :async? is true, the function is expected to return a channel unless :keyset-blocking? is also true in which case it will be run in a thread. Other options: :required? - Return a 401 unless valid claims are present :unauthorized - A function that will receive the context map to handle a 401 :check-header - the header to check for the access token
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |