friend-oauth2.workflow
Documentation forthcoming
default-credential-fn
(default-credential-fn creds)Documentation forthcoming
is-oauth2-callback?
(is-oauth2-callback? config req)Documentation forthcoming
not-process-config?
(not-process-config? workflow-args)Check whether the config doesn’t need to be processed.
process-config
(process-config workflow-args)This function allows workflow to support legacy parameters :client-config and uri-config while also supporting the new configuration key :config. It does this by generating the legacy configurations when the new configuration data is present. It not, it assumes that legacy configuration is being utilized.
process-config?
(process-config? workflow-args)Check whether the config needs to be processed.
redirect-to-provider!
(redirect-to-provider! {:keys [uri-config]} request)Redirects user to OAuth2 provider.
The code parameter should be in the response.
request-token
(request-token {:keys [uri-config access-token-parsefn]} code)POSTs request to OAauth2 provider for authorization token.
workflow
(workflow args)Workflow for OAuth2