Can a refresh request ask for more scope than the resource owner granted?
Refresh scope within the scope originally grantedRFC 6749 §6MUST NOTRoles: authorization_server
Requirement as recorded in the ProtocolSoup registry
The requested scope MUST NOT include any scope not originally granted by the resource owner, and if omitted is treated as equal to the scope originally granted by the resource owner.
Read §6 in RFC 6749Self-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 obtains tokens as demo-app for scope profile email, then refreshes with scope=email, a subset of what the resource owner granted. The new access token has that scope.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
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 ZGVtby1hcHA6OXh2TTdNYXZPSXYyc0xoODFBUnBLNHRabUJKV2ZVSnA= Content-Length: 709 Content-Type: application/x-www-form-urlencoded Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJjbGllbnRfaWQiOiJkZW1vLWFwcCIsImV4cCI6MTc5NzE2ODkyMiwiaWF0IjoxNzk2NTY0MTIyLCJpc3MiOiJodHRwczovL3Byb3RvY29sc291cC5jb20iLCJqdGkiOiJyZWZyZXNoLTcxN2UyZDkzNGM5NWMwZGIiLCJzY29wZSI6InByb2ZpbGUgZW1haWwiLCJzdWIiOiJhbGljZSIsInR5cGUiOiJyZWZyZXNoIn0.C-_p0SQC5KE4SjscFQUrm_ryhPGxirjuAF9savM8TP0xQhZMO-qbDR7GnjTzvBfD2713WIBfJW0vcY-RMWN7I_ABynnpdaXyphfj2hukMiYD5kDO0bSz4ZHUzbovyISY0TiKxkgzeiZs3ApXdyOww2yqzkxInIiEz3hWaqqlGEh1Go1hefFJu12bJEaAPPfH-HboljZg7IxqoFOlh77aqA40gLWYQzXS7MmYr6YhgaRPGXyNvHcZpkZ3f19inklFxiF9WUe8PxeeVZb1ex2SGujjzMryefJhOLhcij0UlviDoyOkAZxwJYUseLXXQGFAT1HsLSE59I0rxxs6lU-Atg&scope=email
Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bac6a5db23cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:35:23 GMT Fly-Request-Id: 01M95S1ZM6W2BM661FRHQD0B59-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=HkN2MPDKPL05YKByogN5Jg0iABoT809TzxF8X21ItSPTsvBHjmoabkLoMV3fCBNfaSQuQa7FG%2B4KaK9AZQ6d11K2mz7EDyZdWA6htlKPG%2F1OPT%2FWpHL5x0A2nQCTaqNgV5Y%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=206 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoiZGVtby1hcHAiLCJlbWFpbCI6ImFsaWNlQGV4YW1wbGUuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImV4cCI6MTc5NjU2NzcyMywiaWF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7vLel7WtYsdf8vlsjcwBXyAr_J7YGuM23pKcJvRoxyVWa4P-SlXqnhF-jueWFxCo9CnAFUpBk51m8-eEwiL215KHi4iBkG7owKf5LzDXAZAKQ7Q","scope":"email"}
Failing exchange
Rejected, as requiredConformance client
The conformance client obtains tokens as demo-app for scope profile email, then sends two refresh requests whose scope adds openid. openid is registered for the client, but the resource owner did not grant it. The refresh token is not consumed by the refusals.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.POST https://protocolsoup.com/oauth2/token400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic ZGVtby1hcHA6OXh2TTdNYXZPSXYyc0xoODFBUnBLNHRabUJKV2ZVSnA= Content-Length: 724 Content-Type: application/x-www-form-urlencoded Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJjbGllbnRfaWQiOiJkZW1vLWFwcCIsImV4cCI6MTc5NzE2ODkyOSwiaWF0IjoxNzk2NTY0MTI5LCJpc3MiOiJodHRwczovL3Byb3RvY29sc291cC5jb20iLCJqdGkiOiJyZWZyZXNoLTdmMzNlNzNiMzE0OWQ1YjQiLCJzY29wZSI6InByb2ZpbGUgZW1haWwiLCJzdWIiOiJhbGljZSIsInR5cGUiOiJyZWZyZXNoIn0.XFQk_TIjnjV-UrHFkrjrXlz7YY2o2R_0GektWPs55Q9lzxnaIUEs8nCAHdt5GuoRek1DvSUgMhv57YJGyHQSRukS_6RMM0Bd7STEIdEtxeH_CRHXPU3PccxGtdIFrCQu7F1sJywCjAHdBL0TmgctbLRasMHAf058H_HhAN4TsixeTZWHMKqI5kVxB3NhrMhj2UhsdD1OCO2Xj8Mr6V32O8f5S89CXzxSUt4ICAiiV_o_B_ZvSCxPSkRW0osld9Cgo4FTxskopKALmJkKR7QQfHR3knjQqHEn_jQU7PL81ZqNXcs-YSxVK8o2CjI5q6q_BHeMVcEJTDno3fZ1Then4Q&scope=profile+email+openid
Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bac961fcf3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:35:30 GMT Fly-Request-Id: 01M95S26EVBF4TGBW7Z1Z0K614-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=TSM2ZBLLBqDLfzeANoc0dIwTR6%2FlNoewrN6tUBUPf%2FRKN2lofLfSpgTwmlFZNIlBmazZJoVBDTeeDAKj741X9GlqvYHgOemoFjuwSfA2X2wwi7n6%2F%2BipHOHgEn2%2Fum3XsCA%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=2,cfOrigin;dur=203 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 {"error":"invalid_scope","error_description":"The requested scope exceeds the scope granted by the resource owner","error_uri":"https://datatracker.ietf.org/doc/html/rfc6749#section-5.2"}2.POST https://protocolsoup.com/oauth2/token400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic ZGVtby1hcHA6OXh2TTdNYXZPSXYyc0xoODFBUnBLNHRabUJKV2ZVSnA= Content-Length: 710 Content-Type: application/x-www-form-urlencoded Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJjbGllbnRfaWQiOiJkZW1vLWFwcCIsImV4cCI6MTc5NzE2ODkyOSwiaWF0IjoxNzk2NTY0MTI5LCJpc3MiOiJodHRwczovL3Byb3RvY29sc291cC5jb20iLCJqdGkiOiJyZWZyZXNoLTdmMzNlNzNiMzE0OWQ1YjQiLCJzY29wZSI6InByb2ZpbGUgZW1haWwiLCJzdWIiOiJhbGljZSIsInR5cGUiOiJyZWZyZXNoIn0.XFQk_TIjnjV-UrHFkrjrXlz7YY2o2R_0GektWPs55Q9lzxnaIUEs8nCAHdt5GuoRek1DvSUgMhv57YJGyHQSRukS_6RMM0Bd7STEIdEtxeH_CRHXPU3PccxGtdIFrCQu7F1sJywCjAHdBL0TmgctbLRasMHAf058H_HhAN4TsixeTZWHMKqI5kVxB3NhrMhj2UhsdD1OCO2Xj8Mr6V32O8f5S89CXzxSUt4ICAiiV_o_B_ZvSCxPSkRW0osld9Cgo4FTxskopKALmJkKR7QQfHR3knjQqHEn_jQU7PL81ZqNXcs-YSxVK8o2CjI5q6q_BHeMVcEJTDno3fZ1Then4Q&scope=openid
Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bac9c5d083cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:35:31 GMT Fly-Request-Id: 01M95S27F06A7QZR63E1BFNNNQ-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=jWqvAMvTAO0bpGZB346%2FZmOi674MS0bbn0hFEipPtsX4tSx4mRczn2937zylEaO1aOT6tCM%2F9mmWCSMejjecutYeLP%2BFWJILnr7tGgELNvbhWjGcO6BLnmf2ct5UqKNqc%2Bg%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=224 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 {"error":"invalid_scope","error_description":"The requested scope exceeds the scope granted by the resource owner","error_uri":"https://datatracker.ietf.org/doc/html/rfc6749#section-5.2"}
Run it live
Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.
Open the flow in Looking GlassTests
- TestRefreshCannotWidenTheScope
./internal/protocols/oauth2
Pass
Implementation
Explainer
What this requires
No: a refresh request cannot ask for more scope than the resource owner granted. The scope of a refresh request is bounded by what the resource owner granted when the refresh token was first issued. It may be the same or a subset. If the parameter is left out, the new access token gets the original scope.
The sentence is written about the request, so it binds the client. The server's side follows from the error it defines: RFC 6749 Section 5.2 gives invalid_scope for a requested scope that "exceeds the scope granted by the resource owner." A server that receives too wide a scope refuses the request. It does not quietly trim it.
The bound is the grant, not the client's registration. A value the client is registered for but the user did not approve is still outside it.
Why it exists
A refresh happens with no user present. If it could add scope, the consent screen would be a formality: a client could ask for a small scope while the user is watching and widen it later, as often as it liked.
What non-compliance looks like
A refresh handler that takes scope from the request and passes it to the token-issuing function. Every refresh then yields whatever the client asks for.
At /oauth2/token the response is 400 with error invalid_scope and error_description The requested scope exceeds the scope granted by the resource owner. The refresh token is not consumed, so the client can retry with a valid scope.
How ProtocolSoup tests it
TestRefreshCannotWidenTheScope obtains tokens for profile email and refreshes with four scopes that exceed it: profile email openid, openid alone, profile api:write, and PROFILE, since scope values are case-sensitive. Each is invalid_scope. With the same refresh token, still valid, it then refreshes with no scope (the response says profile email), with email (the access token's scope claim is email), and with email profile, the full scope in another order.
The captured passing exchange is refresh-with-a-narrower-scope. The failing one, refresh-with-a-wider-scope, adds openid twice.