OAuth client library for Clojure.
OAuth client library for Clojure.
(access-token consumer request-token)
(access-token consumer request-token verifier)
Exchange a request token for an access token. When provided with two arguments, this function operates as per OAuth 1.0. With three arguments, a verifier is used.
Exchange a request token for an access token. When provided with two arguments, this function operates as per OAuth 1.0. With three arguments, a verifier is used.
(authorization-header oauth-params)
(authorization-header oauth-params realm)
OAuth credentials formatted for the Authorization HTTP header.
OAuth credentials formatted for the Authorization HTTP header.
(build-oauth-token-request consumer
uri
unsigned-oauth-params
&
[extra-params token-secret])
Used to build actual OAuth request.
Used to build actual OAuth request.
(build-request oauth-params & [form-params])
Construct request from prepared paramters.
Construct request from prepared paramters.
(build-xauth-access-token-request consumer username password nonce timestamp)
(build-xauth-access-token-request consumer
{token :oauth_token
secret :oauth_token_secret}
username
password
nonce
timestamp)
(credentials consumer
token
token-secret
request-method
request-uri
&
[request-params])
Return authorization credentials needed for access to protected resources. The key-value pairs returned as a map will need to be added to the Authorization HTTP header or added as query parameters to the request.
Return authorization credentials needed for access to protected resources. The key-value pairs returned as a map will need to be added to the Authorization HTTP header or added as query parameters to the request.
(form-decode s)
Parse form-encoded bodies from OAuth responses.
Parse form-encoded bodies from OAuth responses.
(make-consumer key secret request-uri access-uri authorize-uri signature-method)
Make a consumer struct map.
Make a consumer struct map.
(refresh-token consumer expired-token)
Exchange an expired access token for a new access token.
Exchange an expired access token for a new access token.
(request-token consumer)
(request-token consumer callback-uri)
(request-token consumer callback-uri extra-params)
Fetch request token for the consumer.
Fetch request token for the consumer.
(user-approval-uri consumer token)
(user-approval-uri consumer token extra-params)
Builds the URI to the Service Provider where the User will be prompted to approve the Consumer's access to their account. A map of extra parameters may be included.
Builds the URI to the Service Provider where the User will be prompted to approve the Consumer's access to their account. A map of extra parameters may be included.
(xauth-access-token consumer username password)
Request an access token with a username and password with xAuth.
Request an access token with a username and password with xAuth.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close