Problem Statement
In OAuth 2.0, what are scopes used for?
Explanation
Scopes express permissions, such as read-only or write access to a specific API. Least-privilege scopes reduce blast radius if a token is stolen, which is critical in distributed systems.
Code Solution
SolutionRead Only
Authorization request: scope=contacts.read%20calendar.read
