Liking cljdoc? Tell your friends :D

com.yetanalytics.pedestal-oidc.interceptor


decode-enter-syncclj

(decode-enter-sync ctx required? check-header unauthorized keyset)
source

decode-interceptorclj

(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
sourceraw docstring

default-unauthorizedclj

(default-unauthorized ctx & [?ex & _])
source

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

× close