Liking cljdoc? Tell your friends :D

erdos.oauth

OAuth client wrapper for Ring.

OAuth client wrapper for Ring.
raw docstring

defwrappercljmacro

(defwrapper & ms)
source

handle-oauthclj

(handle-oauth request
              response
              raise
              {:as opts :keys [error success callback-async?]})

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

request->urlclj

(request->url req)
source

request-new-tokencljmultimethod

source

request-user-infocljmultimethod

source

wrap-oauthcljmultimethod

source

wrap-oauth-defaultclj

(wrap-oauth-default handler {:as opts :keys [id secret url]})
source

wrap-oauth-facebookclj

(wrap-oauth-facebook h__2127__auto__ & opts__2128__auto__)
source

wrap-oauth-googleclj

(wrap-oauth-google h__2127__auto__ & opts__2128__auto__)
source

wrap-oauth-linkedinclj

(wrap-oauth-linkedin h__2127__auto__ & opts__2128__auto__)
source

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

× close