FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Sync changes from upstream repository · PrepSys/developer.github.com@561ecb7 · GitHub

Commit 561ecb7

Browse files
Hubot
committed
Sync changes from upstream repository
1 parent a27f7f9 commit 561ecb7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎content/v3/auth.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ $ curl -u <username> https://api.github.com/user
3939

4040
### Via OAuth Tokens
4141

42-
Alternatively, you can authenticate using [personal access
43-
tokens][personal-access-tokens] or OAuth tokens. To do so, provide the token as
44-
the username and provide a blank password or a password of `x-oauth-basic`. If
45-
you're accessing the API via cURL, replace `<token>` with your OAuth token in
46-
the following command:
42+
Alternatively, you can use [personal access
43+
tokens][personal-access-tokens] or OAuth tokens instead of your password.
4744

4845
<pre class='terminal'>
49-
$ curl -u &lt;token&gt;:x-oauth-basic https://api.github.com/user
46+
$ curl -u &lt;username&gt;:&lt;token&gt; https://api.github.com/user
5047
</pre>
5148

5249
This approach is useful if your tools only support Basic Authentication but you

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL