Scope and protected resources
10The client asks for privileges; the server decides what it actually grants.
The resource server checks whether this token authorizes this operation.
Key idea: A requested scope is not automatically granted.
Rules & examples
A requested scope is not automatically granted.
- Scopes are case-sensitive strings defined by the authorization server.
- The server may partially or fully ignore the requested scope based on policy and authorization.
- § 7 requires the resource server to validate the token and check the scope before serving protected resources.
Token validity and permission for a particular action are separate checks.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
The BCP recommends minimal privileges, resource/action limits, and audience restrictions, with rejection of tokens meant for another resource server.
Read the updated RFC section ↗