Skip to content

Commit 23dd0ab

Browse files
committed
changed comma to space in accordance with OAuth spec
1 parent 0e61e5f commit 23dd0ab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/v3/oauth.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Name | Type | Description
3535
-----|------|--------------
3636
`client_id`|`string` | **Required**. The client ID you received from GitHub when you [registered](https://github.com/settings/applications/new).
3737
`redirect_uri`|`string` | The URL in your app where users will be sent after authorization. See details below about [redirect urls](#redirect-urls).
38-
`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.
38+
`scope`|`string` | A space delimited 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.
3939
`state`|`string` | An unguessable random string. It is used to protect against cross-site request forgery attacks.
4040
`allow_signup`|`string` | Whether or not unauthenticated users will be offered an option to sign up for GitHub during the OAuth flow. The default is `true`. Use `false` in the case that a policy prohibits signups.
4141

@@ -204,11 +204,11 @@ Name | Description
204204
{% if page.version == 'dotcom' %}`admin:gpg_key`| Fully manage GPG keys.{% endif %}
205205

206206
NOTE: Your application can request the scopes in the initial redirection. You
207-
can specify multiple scopes by separating them with a comma:
207+
can specify multiple scopes by separating them with a space:
208208

209209
https://github.com/login/oauth/authorize?
210210
client_id=...&
211-
scope=user,public_repo
211+
scope=user%20public_repo
212212

213213
## Common errors for the authorization request
214214

0 commit comments

Comments
 (0)