Click or drag to resize
oauth_2_0

OAuth2 is a protocol that lets external apps request authorization to private details in a user's GitHub account without getting their password. This is preferred over Basic Authentication because tokens can be limited to specific types of data, and can be revoked by users at any time.

Headers

Authorization
Used to send a valid OAuth 2 access token. Do not use together with the "access_token" query string parameter.
Type: STRING

Query Parameters

access_token
Used to send a valid OAuth 2 access token. Do not use together with the "Authorization" header
Type: STRING
Response

This section contains the following subsections:

HTTP status code 404

Unauthorized

Body not defined.
Settings
authorizationUrihttps://github.com/login/oauth/authorize
accessTokenUrihttps://github.com/login/oauth/access_token
authorizationGrants
  • code
  • token
scopes
  • user
  • user:email
  • user:follow
  • public_repo
  • repo
  • repo:status
  • delete_repo
  • notifications
  • gist