Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commita36ffd4

Browse files
committed
Merge pull request#560 from github/access-tokens-are-passwords
Encourage using tokens as passwords
2 parents1815ff8 +db5437d commita36ffd4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎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
<preclass='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)

[8]ページ先頭

©2009-2025 Movatter.jp