Liking cljdoc? Tell your friends :D

happyapi.oauth2.capture-redirect

Reference for receiving a token in a redirect from the oauth provider. If you are making a web app, implement a route in your app that captures the code parameter. If you use this namespace, add ring as a dependency in your project.

Reference for receiving a token in a redirect from the oauth provider.
If you are making a web app, implement a route in your app that captures the code parameter.
If you use this namespace, add ring as a dependency in your project.
raw docstring

browse-to-providerclj

(browse-to-provider config scopes optional)
source

fresh-credentialsclj

(fresh-credentials request
                   {:as config :keys [redirect_uri authorization_options fns]}
                   scopes)

Opens a browser to authenticate, waits for a redirect, and returns a code. Defaults access_type to offline, state to a random uuid which is checked when redirected back, and include_granted_scopes true.

Opens a browser to authenticate, waits for a redirect, and returns a code.
Defaults access_type to offline,
state to a random uuid which is checked when redirected back,
and include_granted_scopes true.
sourceraw docstring

login-timeoutclj

If the user doesn't log in after 2 minutes, stop waiting.

If the user doesn't log in after 2 minutes, stop waiting.
sourceraw docstring

make-redirect-handlerclj

(make-redirect-handler p)
source

update-credentialsclj

(update-credentials request config credentials scopes)

Use credentials if valid, refresh if necessary, or get new credentials. For valid optional params, see https://developers.google.com/identity/protocols/oauth2/web-server#httprest_1

Use credentials if valid, refresh if necessary, or get new credentials.
For valid optional params, see https://developers.google.com/identity/protocols/oauth2/web-server#httprest_1
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close