Due to updated version of io.pedestal/pedestal.service
, the library requires Java 1.8+.
Starting with version 0.3.5 authenticate-handler
and callback-handler
of interactive OAuth interceptor accept either a map or a function that returns a map of OAuth providers' configuration.
Starting with version 0.3.0 the signatures of all credential/callback functions have changed. Now all the functions accept the request context as their first parameter and a map of parsed credentials (if they accepted them before).
To migrate to version 0.3.0 the following changes are needed:
The change is relevant to you if you are using Http-Basic or Form-Based flow. Change your credentials-fn
as follows:
(defn find-user-identity
[username password]
..)
(defn find-user-identity
[context {:keys [username password]}]
..)
The change is relevant to you only if you are using OAuth2 flow. Change your on-success-handler
as follows:
(defn on-github-success
[{:keys [identity return]}]
..)
(defn on-github-success
[context {:keys [identity return]}]
..)
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close