OAuth client wrapper for Ring.
OAuth client wrapper for Ring.
(defwrapper & ms)
(handle-oauth request
response
raise
{:as opts :keys [error success callback-async?]})
Arguments: First argument is request map. Second argument is map of keys:
Arguments: First argument is request map. Second argument is map of keys: - :url-endpoint - OAuth 2.0 endpoint of provider - :url-exchange - Code to token exchange endpoint of provider - :id - Client id - :secret - Client secret - :url - Local url for login - :success - Asyncronous ring handler fn called on success. - :error - Asyncronous ring handler fn called on error.
(request->url req)
(wrap-oauth-default handler {:as opts :keys [id secret url]})
(wrap-oauth-facebook h__2133__auto__ & opts__2134__auto__)
(wrap-oauth-github h__2133__auto__ & opts__2134__auto__)
(wrap-oauth-google h__2133__auto__ & opts__2134__auto__)
(wrap-oauth-linkedin h__2133__auto__ & opts__2134__auto__)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close