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.

Commit495a7c3

Browse files
committed
document oauth flow with no scopes param
1 parentf73eb8f commit495a7c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎content/v3/oauth.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ This is a description of the OAuth2 flow from 3rd party web sites.
2828

2929
###Parameters
3030

31-
Name | Type | Description
31+
Name | Type | Description
3232
-----|------|--------------
3333
`client_id`|`string` |**Required**. The client ID you received from GitHub when you[registered](https://github.com/settings/applications/new).
3434
`redirect_uri`|`string` | The URL in your app where users will be sent after authorization. See details below about[redirect urls](#redirect-urls).
35-
`scope`|`string` | A comma separated list of[scopes](#scopes).
35+
`scope`|`string` | A comma separated list of[scopes](#scopes). If not provided,`scope` defaults to an empty list of scopes for users that don't have a valid token for the app. For users who do already have a valid token for the app, the user won't be shown the OAuth authorization page with the list of scopes. Instead, this step of the flow will automatically complete with the same scopes that were used last time the user completed the flow.
3636
`state`|`string` | An unguessable random string. It is used to protect against cross-site request forgery attacks.
3737

3838
###2. GitHub redirects back to your site
@@ -48,7 +48,7 @@ Exchange this for an access token:
4848

4949
###Parameters
5050

51-
Name | Type | Description
51+
Name | Type | Description
5252
-----|------|---------------
5353
`client_id`|`string` |**Required**. The client ID you received from GitHub when you[registered](https://github.com/settings/applications/new).
5454
`client_secret`|`string` |**Required**. The client secret you received from GitHub when you[registered](https://github.com/settings/applications/new).
@@ -188,7 +188,7 @@ Read more about these tokens on the [GitHub Help page](https://help.github.com/a
188188

189189
###Parameters
190190

191-
Name | Type | Description
191+
Name | Type | Description
192192
-----|------|--------------
193193
`scopes`|`array` | A list of scopes that this authorization is in.
194194
`note`|`string` | A note to remind you what the OAuth token is for.
@@ -217,7 +217,7 @@ exists. Otherwise, it creates one.
217217

218218
###Parameters
219219

220-
Name | Type | Description
220+
Name | Type | Description
221221
-----|------|--------------
222222
`client_secret`|`string`| The 40 character OAuth app client secret associated with the client ID specified in the URL.
223223
`scopes`|`array` | A list of scopes that this authorization is in.
@@ -245,7 +245,7 @@ Name | Type | Description
245245

246246
###Parameters
247247

248-
Name | Type | Description
248+
Name | Type | Description
249249
-----|------|--------------
250250
`scopes`|`array` | Replaces the authorization scopes with these.
251251
`add_scopes`|`array` | A list of scopes to add to this authorization.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp