Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 70e5323

Browse files
committed
improve hierarchy
1 parent 41285a7 commit 70e5323

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

_posts/2010-04-23-oauth.markdown

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ layout: default
33
title: OAuth
44
---
55

6+
## OAuth
7+
68
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.
79

810
All developers need to [register their application](http://github.com/account/applications/new) before getting started. A registered OAuth application is assigned a unique Client ID and Client Secret. The Client Secret should not be shared.
911

10-
## Web Application Flow
12+
### Web Application Flow
1113

1214
This is a description of the OAuth flow from 3rd party web sites.
1315

@@ -33,7 +35,7 @@ This is a description of the OAuth flow from 3rd party web sites.
3335
GET https://github.com/api/v2/json/user/show?
3436
access_token=...
3537

36-
## Javascript/Desktop Flow
38+
### Javascript/Desktop Flow
3739

3840
These flows are disabled for now...
3941

@@ -50,7 +52,7 @@ callback URL's host.
5052
BAD: http://foo:com:8080
5153
BAD: http://bar.com
5254

53-
## Scopes
55+
### Scopes
5456

5557
Scopes let you specify exactly what type of access you need. This will
5658
be displayed to the user on the authorize form.
@@ -68,7 +70,7 @@ can specify multiple scopes by separating them by a comma.
6870
client_id=...&
6971
scope=user,public_repo
7072

71-
## References
73+
### References
7274

7375
* [OAuth 2 spec](http://tools.ietf.org/html/draft-ietf-oauth-v2-07)
7476
* [Facebook API](http://developers.facebook.com/docs/authentication/)

0 commit comments

Comments
 (0)