Skip to content

Commit 12abe31

Browse files
committed
Merge pull request github#67 from djmitche/patch-1
Better advice for non-webapps
2 parents c5793bb + a24245a commit 12abe31

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

content/v3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ OAuth2 Token (sent as a parameter):
153153
$ curl https://api.github.com?access_token=OAUTH-TOKEN
154154
</pre>
155155

156-
Read [more about OAuth2](/v3/oauth/).
156+
Read [more about OAuth2](/v3/oauth/). Note that OAuth2 tokens can be [acquired
157+
programmatically](/v3/oauth/#create-a-new-authorization), for applications that
158+
are not websites.
157159

158160
## Pagination
159161

content/v3/oauth.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ The access token allows you to make requests to the API on a behalf of a user.
7272

7373
GET https://api.github.com/user?access_token=...
7474

75-
## Desktop Application Flow
75+
## Non-Web Application Flow
7676

77-
Use basic authentication for now...
77+
Use basic authentication to create an OAuth2 token using the [interface
78+
below](/v3/oauth#creating-a-new-authorization). With this tecnique, a username
79+
and password need not be stored permanently, and the user can revoke access at
80+
any time.
7881

7982
## Redirect URLs
8083

0 commit comments

Comments
 (0)