Liking cljdoc? Tell your friends :D

gapi.auth


call-paramscljmultimethod

Update the call parameters with the authentication details

Update the call parameters with the authentication details
sourceraw docstring

create-authclj

(create-auth api_key)
(create-auth client_id client_secret redirect_url)

Return a state map used to manage the authentication session. Can accept either an API key for simple API access or a client ID, client secret and redirect URL for OAuth2. See https://developers.google.com/console to generate keys.

Return a state map used to manage the authentication session. 
Can accept either an API key for simple API access or a client
ID, client secret and redirect URL for OAuth2. See
https://developers.google.com/console to generate keys.
sourceraw docstring

exchange-tokenclj

(exchange-token state code checkstate)

Handle the user response from the oauth flow and retrieve a valid auth token. Returns true on success, false on failure.

Handle the user response from the oauth flow and retrieve a valid
auth token. Returns true on success, false on failure.
sourceraw docstring

generate-auth-urlclj

(generate-auth-url state scopes)
(generate-auth-url state scopes opts)

Retrieve a URL suitable for redirecting the user to for auth permissions. Scopes should be supplied as a vector of required scopes. An optional third param is a map with access_type and approval_prompt keys.

Retrieve a URL suitable for redirecting the user to for auth permissions. 
Scopes should be supplied as a vector of required scopes. An optional third
param is a map with access_type and approval_prompt keys.
sourceraw docstring

is-validclj

(is-valid state)

Returns true if the authentication is valid, and in date.

Returns true if the authentication is valid, and in date.
sourceraw docstring

refresh-tokenclj

(refresh-token state)

Generate a new authentication token using the refresh token

Generate a new authentication token using the refresh token
sourceraw docstring

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

× close