Liking cljdoc? Tell your friends :D

co.gaiwan.oak.apis.oauth

OAuth 2.1 authorization and token exchange

OAuth 2.1 authorization and token exchange
raw docstring

authorize-responseclj

(authorize-response {:keys [db oauth-client identity-id auth-time params]
                     :as opts})

Happy path, store a code for later token exchange, and send the user back to the Relying Party

Happy path, store a code for later token exchange, and send the user back to
the Relying Party
raw docstring

client-checksclj

(client-checks oauth-client {:keys [redirect_uri response_type scope state]})

We've looked up the client in the database, check it against the parameters

We've looked up the client in the database, check it against the parameters
raw docstring

componentclj

(component opts)

error-html-responseclj

(error-html-response message)

error-redirect-responseclj

(error-redirect-response redirect-uri kvs)

error-responseclj

(error-response error error-description)

GET-authorization-server-metadataclj

(GET-authorization-server-metadata
  {:keys [request-method uri scheme headers authority] :as req})

GET-authorizeclj

(GET-authorize {:keys [db parameters session] :as req})

handle-authorization-code-grantclj

(handle-authorization-code-grant req db params)

Token exchange: handle code grant type

Token exchange: handle `code` grant type
raw docstring

handle-client-credentials-grantclj

(handle-client-credentials-grant req db params)

Token exchange: handle client_credentials grant type

Token exchange: handle `client_credentials` grant type
raw docstring

handle-refresh-token-grantclj

(handle-refresh-token-grant db params)

Token exchange: handle refresh_token grant type

Token exchange: handle `refresh_token` grant type
raw docstring

identity-checksclj

(identity-checks req session params)

Check if there's an authenticated user in the session, if not, redirect to the login page

Check if there's an authenticated user in the session, if not, redirect to the
login page
raw docstring

permission-dialog-responseclj

(permission-dialog-response oauth-client scope params req)

Ask the user permission for the requested scopes

Ask the user permission for the requested scopes
raw docstring

POST-exchange-tokenclj

(POST-exchange-token {:keys [db parameters] :as req})

pre-client-checksclj

(pre-client-checks {:keys [redirect_uri client_id]})

Initial checks, before we have a client+redirect to send the user back to

Initial checks, before we have a client+redirect to send the user back to
raw 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