Include resource field in OAuth authorization details response #42498
Unanswered
tdabasinskas
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
The OAuth authorization server accepts the resource parameter (RFC 8707) in the
/oauth/authorizerequest and stores it on the FlowState, but theGET /oauth/authorizations/{id}endpoint does not include it in theAuthorizationDetailsResponse.Problem
When building a consent page, we need to show the user which resource the client is requesting access to — not just the client name and scopes. The resource parameter carries this information (e.g., https://mcp-server.com), but since it's omitted from the authorization details response, the consent page has no way to display it.
The current response struct:
Proposed change
Add the resource field to
AuthorizationDetailsResponse:And populate it from the stored authorization in
OAuthServerGetAuthorization.Context
This is relevant for MCP (Model Context Protocol) OAuth flows where tools like Cursor send
resource=https://mc-server.com/when authorizing. The consent page needs this to show the user which specific resource (e.g., which AI agent) the client is requesting access to, rather than displaying a generic "authorize this application" prompt.Beta Was this translation helpful? Give feedback.
All reactions