Security & Identity
OAuth scopes
OAuth scopes name the permissions a client requests, and the server may grant less. The resource server must check the granted scope on every request, because a valid token is not enough.
What you will be able to do
- Explain how scopes are requested, granted and reported in a token response.
- Decide the smallest scope set a client needs for its feature.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Security & Identity
- OIDC flowsIntermediate · 4 min
OpenID Connect adds identity to OAuth 2.0. The authorization code flow with PKCE keeps tokens on the back end, while the implicit flow exposes them in the browser.
- JWT validationIntermediate · 4 min
A JWT can be read by anyone, so a service must verify the signature, algorithm, issuer, audience and expiry before it trusts any claim. Decoding alone is not validation.
- PKI chain of trustIntermediate · 4 min
A certificate chain links a leaf certificate to a trusted root through intermediates. Each link must verify, and clients that cannot fetch missing intermediates fail…
- Certificate rotationAdvanced · 4 min
Certificate rotation replaces a credential before it expires, with overlap so clients can move. Many outages come from a renewed file that the service never reloads.
- mTLSAdvanced · 4 min
Mutual TLS proves that a client holds a trusted key. The handshake does not decide what the client may do, so the application must map the identity to permissions.
- KMS envelopesAdvanced · 4 min
Envelope encryption wraps a data key with a KMS key, and the data key encrypts the bulk data locally. Only the encrypted data key is stored with the data, which keeps…