(logged-in?-handler request)Return the current session auth map (e.g. {:user-id ...}) if the request is already authenticated via the session cookie, else nil. Not a Ring response.
Return the current session auth map (e.g. {:user-id ...}) if the request is
already authenticated via the session cookie, else nil. Not a Ring response.(login-handler request)POST handler that validates username+token against the TokenCatalog, creates a new session in the SessionStore, sets the session cookie, and redirects.
Redirect target is taken from the :next param (relative paths only) or falls back to :post-login-redirect.
POST handler that validates username+token against the TokenCatalog, creates a new session in the SessionStore, sets the session cookie, and redirects. Redirect target is taken from the :next param (relative paths only) or falls back to :post-login-redirect.
(logout-handler request)POST handler Clear cookie + session and redirect to a confirmation page.
POST handler Clear cookie + session and redirect to a confirmation page.
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 |