youyesyet.oauth

Handle oauth with multiple authenticating authorities.

auth-redirect-uri

(auth-redirect-uri request-token authority)

Gets the URI the user should be redirected to when authenticating.

authority!

TODO: write docs

fetch-access-token

(fetch-access-token request_token authority)

TODO: write docs

fetch-request-token

(fetch-request-token request auth)(fetch-request-token request)

Fetches a request token from the authority implied by this request.

get-authorities

(get-authorities _)

Fetch the authorities from the database and return a map of them.

oauth-callback-uri

(oauth-callback-uri {:keys [headers]})

Generates the oauth request callback URI.