You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamically registered clients (via RFC 7591 DCR) have no Audience field set on fosite.DefaultClient. When a client sends grant_type=refresh_token with resource= (RFC 8707), Fosite validates the original session's granted audience against the client's registered audience whitelist. With an empty whitelist, all refresh token requests fail:
"Requested audience '...' has not been whitelisted by the OAuth 2.0 Client."
The initial authorization_code exchange works because Fosite's auth code handler does not perform the audience whitelist check. The refresh_token handler does (flow_refresh.go:98).
Expected behavior
DCR-registered clients should inherit the server's AllowedAudiences so that refresh token requests with resource= succeed.
Impact
Refresh token requests fail for all DCR clients when the resource parameter is used (which MCP clients send per RFC 8707).
Activity
Set audience on DCR clients for refresh token support
Set audience on DCR clients for refresh token support (#3796)