Skip to content

Commit bffb2ba

Browse files
committed
Clearly document scope normalization
1 parent e35968d commit bffb2ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/v3/oauth.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ additional permission, but don’t forget that users can always say no.
9696
Check out the [Basics of Authentication guide][basics auth guide] which
9797
provides tips on handling modifiable token scopes.
9898

99+
#### Normalized scopes
100+
101+
When requesting multiple scopes, the token will be saved with a normalized list
102+
of scopes, discarding any scopes that are already included in any other scopes
103+
in the list. For example, requesting `user,gist,user:email` will result in a
104+
token with `user` and `gist` scopes only since the access granted with
105+
`user:email` scope [is included](#scopes) in the `user` scope.
106+
99107
### 3. Use the access token to access the API
100108

101109
The access token allows you to make requests to the API on a behalf of a user.

0 commit comments

Comments
 (0)