What does the authorization server do when the client omits the scope parameter?

Omitted scope processed with a default value or failedRFC 6749 §3.3MUSTRoles: authorization_server

Requirement as recorded in the ProtocolSoup registry

If the client omits the scope parameter when requesting authorization, the authorization server MUST either process the request using a pre-defined default value or fail the request indicating an invalid scope.

Read §3.3 in RFC 6749

Self-test verdict

PassCommit 00bac3fEvaluated

This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.

Captured from production

Captured Commit 00bac3f

Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.

Passing exchange

Accepted, as requiredConformance client

The conformance client requests a client_credentials token as machine-client with no scope parameter. The authorization server processes the request with its pre-defined default, the scope registered for the client, and the token response names it.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 1.POST https://protocolsoup.com/oauth2/token200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oauth2/token HTTP/2.0
    Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU=
    Content-Length: 29
    Content-Type: application/x-www-form-urlencoded
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    grant_type=client_credentials

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65ba54318973cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:30:30 GMT
    Fly-Request-Id: 01M95RS1GWRPWDHRPW4G5CC7VR-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=Q%2FChzl3v9wmsmfgEHpspXhIrRSO7ac090kzXw3BzsJeiqc%2BvM%2F6Mf4LsHL4kdqv%2BUlNiFEHoY5OC3EYWnQ4p7%2F89Un1%2BHe%2BVZJwI%2B6g7SlZ9kUFSyKIyaQ5xHCikYNjJozE%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=3,cfOrigin;dur=232
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"access_token":"eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiYXQrand0In0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJleHAiOjE3OTY1Njc0MzAsImlhdCI6MTc5NjU2MzgzMCwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS0zZmUxZmY5ZTU2MDcwZmU2IiwibmJmIjoxNzk2NTYzODMwLCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.ohIZGBiYl6PbCo8Lj-db34ibK9wIjEBy7nvUdcoxEl23Q_5SclMtLerzRpxijIyUcLv8IIG4HXMKEka4twUNFT-i_QrRAZ7ptrXa2ThWcjIz3Oa-OahB6uTDGwg-_hDZVUmIT8a3MdhyXTwbZyePpQ3Dg3CHnNqes8lUc4FnbflWx14q9tVQuNWTMU3mtYdGvESuOADVbh9V2mCP-DGds1hNCZ9SFe_dLfX2WYkGJzas7dSHeCp6E5pnljkH_CqAk4C1XhFYO_8Xp52X5ibHnjnaQ_P7ngmfDqaZN8_ThNdPV2pP9R2qsL7OtgEmcRtsMjO8jBdBEm9cI9bB6gj6QA","token_type":"Bearer","expires_in":3600,"scope":"api:read api:write"}
    

Failing exchange

Not captured: The requirement says what the authorization server does when scope is omitted. This server processes the request with the client's registered scope, so no request with an omitted scope is refused.

Tests

Implementation

Explainer

What this requires

When the client omits scope, the authorization server does one of two things, decided in advance: process the request with a pre-defined default scope, or fail it as an invalid scope. What the server may not do is improvise, for example by issuing a token with whatever scope is convenient, or with none, when no default was ever defined.

The same paragraph of RFC 6749 Section 3.3 adds: "The authorization server SHOULD document its scope requirements and default value (if defined)." A default is only useful to a client that can know what it is.

This server's default is the scope registered for the client. machine-client is registered for api:read api:write; public-app and demo-app for openid profile email.

Why it exists

scope is optional in every grant, so its absence has to mean something definite. Left undefined, some servers would read it as everything the client could ever have and others as nothing, and a client could not predict which.

What non-compliance looks like

A server that issues a token with an empty scope for a request without one is not using a pre-defined default in any useful sense: the token authorizes nothing and the client was not told the request failed. A server that grants every scope it knows has made the most powerful token the easiest to get.

How ProtocolSoup tests it

TestOmittedScopeIsProcessedWithTheClientsRegisteredScope leaves scope out of three grants. The authorization code flow as public-app ends in a token response with scope openid profile email. The implicit flow returns the same value in the fragment. A client_credentials request from a client registered for api:read api:write returns exactly that. The test also covers the other branch: a scope that is sent and has no registered value is refused with invalid_scope, as a redirect from /oauth2/authorize and as a 400 from /oauth2/token.

The captured passing exchange, scope-omitted, is machine-client sending no scope and receiving "scope":"api:read api:write". No failing exchange is captured: this server processes an omitted scope with its default, so no request with an omitted scope is refused.

Related requirements

All RFC 6749 requirements · OAuth 2.0 protocol page

What does the authorization server do when the client omits the scope parameter? · RFC 6749 §3.3 | ProtocolSoup