Liking cljdoc? Tell your friends :D

cerber.stores.token


*token-store*clj

source

->mapclj

(->map result)
source

create-tokenclj

(create-token tag client user scope & [ttl])

Creates new token.

Creates new token.
sourceraw docstring

create-token-storecljmultimethod

source

default-valid-forclj

(default-valid-for)
source

find-access-tokenclj

(find-access-token secret)

Finds access token issued for given client-user pair with particular auto-generated secret code.

Finds access token issued for given client-user pair with particular auto-generated secret code.
sourceraw docstring

find-by-keyclj

(find-by-key key)

Finds token by vectorized exact key. Each element of key is used to compose query depending on underlaying store implementation.

Finds token by vectorized exact key.
Each element of key is used to compose query depending on underlaying store implementation.
sourceraw docstring

find-by-patternclj

(find-by-pattern key)

Finds token by vectorized pattern key. Each nil element of key will be replaced with wildcard specific for underlaying store implementation.

Finds token by vectorized pattern key.
Each nil element of key will be replaced with wildcard specific for underlaying store implementation.
sourceraw docstring

find-refresh-tokenclj

(find-refresh-token client-id secret login)

Finds refresh token issued for given client-user pair with particular auto-generated secret code.

Finds refresh token issued for given client-user pair with particular auto-generated secret code.
sourceraw docstring

generate-access-tokenclj

(generate-access-token client user scope & [opts])

Generates access-token for given client-user pair within provided scope. Additional options (type, refresh?) may adjust token type (Bearer by default) and decide whether to generate refresh-token as well or not (no refresh-tokens by default).

Asking again for refresh-token generation (through :refresh? true option) reuses prevously generated refresh-token for given client/user pair.

Generates access-token for given client-user pair within provided scope.
Additional options (type, refresh?) may adjust token type (Bearer by default)
and decide whether to generate refresh-token as well or not (no refresh-tokens by default).

Asking again for refresh-token generation (through :refresh? true option) reuses prevously
generated refresh-token for given client/user pair.
sourceraw docstring

purge-tokensclj

(purge-tokens)

Removes token from store. Used for tests only.

Removes token from store. Used for tests only.
sourceraw docstring

refresh-access-tokenclj

(refresh-access-token refresh-token)

Refreshes access and refresh-tokens using provided refresh-token.

Refreshes access and refresh-tokens using provided refresh-token.
sourceraw docstring

revoke-access-tokenclj

(revoke-access-token token)
source

revoke-client-tokensclj

(revoke-client-tokens client)
(revoke-client-tokens client login)
source

with-token-storeclj/smacro

(with-token-store store & body)

Changes default binding to default token store.

Changes default binding to default token store.
sourceraw docstring

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

× close