(create-token tag client user scope & [ttl])
Creates new token.
Creates new token.
(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.
(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.
(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.
(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.
(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.
(purge-tokens)
Removes token from store. Used for tests only.
Removes token from store. Used for tests only.
(refresh-access-token refresh-token)
Refreshes access and refresh-tokens using provided refresh-token.
Refreshes access and refresh-tokens using provided refresh-token.
(with-token-store store & body)
Changes default binding to default token store.
Changes default binding to default token store.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close