Liking cljdoc? Tell your friends :D

cemerick.friend.workflows


http-basicclj

(http-basic & {:keys [credential-fn realm] :as basic-config})
source

http-basic-denyclj

(http-basic-deny realm request)
source

interactive-formclj

(interactive-form &
                  {:keys [login-uri credential-fn login-failure-handler
                          redirect-on-auth?]
                   :as form-config
                   :or {redirect-on-auth? true}})
source

interactive-login-redirectclj

(interactive-login-redirect {:keys [form-params params] :as request})
source

make-authclj

(make-auth user-record)
(make-auth user-record auth-meta)

Given a user record map (presumably based on data loaded from an application's database), returns an authentication map that:

  • Uses the :identity or :username slot in the user record as the authentication map's :identity
  • Optionally merges the given auth-meta map into the authentication map's metadata (which by default will contain a single [:type :cemerick.friend/auth] entry
Given a user record map (presumably based on data loaded from an
application's database), returns an authentication map that:

* Uses the :identity or :username slot in the user record as
  the authentication map's :identity
* Optionally merges the given auth-meta map into the authentication
  map's metadata (which by default will contain a single
  [:type :cemerick.friend/auth] entry
sourceraw docstring

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

× close