Liking cljdoc? Tell your friends :D

nsfw.github

Provides auth^2 from the v3 github api.

This library assumes you're using a ring-compatible response format.

The GitHub auth flow is relatively simple, and consists of three steps:

  1. Redirect users to github to request access permissions.
  2. Handle the redirect back from github and exchange the recieved temporary code for a long-lived access token by posting to the github api.
  3. Use the long-lived access token to query the user's protected information from the github api.

See http://developer.github.com/v3/oauth#web-application-flow for more information.

Provides auth^2 from the v3 github api.

This library assumes you're using a ring-compatible response format.

The GitHub auth flow is relatively simple, and consists of three
steps:

1. Redirect users to github to request access permissions.
2. Handle the redirect back from github and exchange the recieved
   temporary code for a long-lived access token by posting to the
   github api.
3. Use the long-lived access token to query the user's protected
   information from the github api.

See http://developer.github.com/v3/oauth#web-application-flow for
more information.
raw docstring

auth-redirect-urlclj

(auth-redirect-url client-id redirect-uri scopes & [state])

Generates a github authorization URL.

Generates a github authorization URL.
sourceraw docstring

callback-routeclj

(callback-route path
                success-redirect-to
                fail-redirect-to
                client-id
                client-secret)
source

exchange-codeclj

(exchange-code client-id client-secret code & [state])
source

login-base-urlclj

source

orgsclj

(orgs token)
source

userclj

(user token)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close