<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/an-oauth-scope-is-not-resource-authorization-tnqkwvct1" -->

---
title: An OAuth scope is not resource authorization | daily.dev
description: OAuth scopes only describe what a client application is permitted to request, not which specific resources a given user may access. A token carrying...
canonical: https://daily.dev/posts/an-oauth-scope-is-not-resource-authorization-tnqkwvct1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: An OAuth scope is not resource authorization | daily.dev
og:description: OAuth scopes only describe what a client application is permitted to request, not which specific resources a given user may access. A token carrying...
og:url: https://daily.dev/posts/an-oauth-scope-is-not-resource-authorization-tnqkwvct1
og:image: https://api.daily.dev/og/posts/TNQKWVCT1.png
og:image:alt: An OAuth scope is not resource authorization
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# An OAuth scope is not resource authorization

**[Auth By Example](https://daily.dev/sources/7eadcwhmohx0bchehapmt)** · [@authbyexample](https://daily.dev/authbyexample) · 1 min read · 1 upvotes · 0 comments

## Summary

OAuth scopes only describe what a client application is permitted to request, not which specific resources a given user may access. A token carrying documents:read does not mean the caller may read any document with that scope; APIs must still perform per-object authorization checks (actor, action, object) on every request. Skipping that check while only validating scope creates an IDOR-style vulnerability where any holder of the scope can enumerate resource IDs. The recommendation is to treat scopes as a coarse client capability gate and enforce fine-grained resource authorization server-side for every read and write.

## Content

An OAuth scope says what an app is allowed to ask for. It does not say which documents Alice may read.

Scopes are coarse grants to a client (for example `documents:read`). Resource authorization still answers actor + action + object for every request: can this user read document 4821 in this tenant?

If your API only checks that the access token has a scope and skips the object check, any caller with that scope can walk IDs. Treat scopes as a client capability gate; keep per-resource authorization on the server for every read and write.

## Similar posts on daily.dev

- [From all-or-nothing to task-based OAuth consent](https://daily.dev/posts/from-all-or-nothing-to-task-based-oauth-consent-t9bk34fln) · Cloudflare · 2 upvotes · 0 comments
- [Dynamic Authorization Scopes in Spring Authorization Server](https://daily.dev/posts/dynamic-authorization-scopes-in-spring-authorization-server-obituhyc7) · Baeldung · 6 upvotes · 0 comments
- [An Introduction to OAuth 2](https://daily.dev/posts/an-introduction-to-oauth-2-4iox2hqnk) · DigitalOcean Community · 0 upvotes · 0 comments
- [Cloudflare Adds Optional OAuth Scopes, Letting Developers Mark What Users May Decline](https://daily.dev/posts/cloudflare-adds-optional-oauth-scopes-letting-developers-mark-what-users-may-decline-c0uhkqtsf) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#authorization](https://daily.dev/tags/authorization), [#oauth](https://daily.dev/tags/oauth)

[View this post on daily.dev](https://daily.dev/posts/an-oauth-scope-is-not-resource-authorization-tnqkwvct1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/an-oauth-scope-is-not-resource-authorization-tnqkwvct1","headline":"An OAuth scope is not resource authorization","text":"OAuth scopes only describe what a client application is permitted to request, not which specific resources a given user may access. A token carrying documents:read does not mean the caller may read any document with that scope; APIs must still perform per-object authorization checks (actor, action, object) on every request. Skipping that check while only validating scope creates an IDOR-style vulnerability where any holder of the scope can enumerate resource IDs. The recommendation is to treat scopes as a coarse client capability gate and enforce fine-grained resource authorization server-side for every read and write.","url":"https://daily.dev/posts/an-oauth-scope-is-not-resource-authorization-tnqkwvct1","datePublished":"2026-09-26T14:04:12.384Z","dateModified":"2026-09-26T14:04:29.458Z","author":{"@type":"Person","name":"Auth By Example","url":"https://daily.dev/authbyexample","image":"https://media.daily.dev/image/upload/s--Fgz7IgGQ--/f_auto/v1789653205/avatars/avatar_7EADCwHmOHX0bChEhAPmt?_a=BAMAMicg0","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/7eadcwhmohx0bchehapmt","name":"Auth By Example"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Auth By Example","item":"https://daily.dev/sources/7eadcwhmohx0bchehapmt"},{"@type":"ListItem","position":3,"name":"An OAuth scope is not resource authorization"}]}
```

