Skip to content

OAuth Server: supported re-consent flow without revoking an existing grant #2931

Open

Description

@rnrnstar2

We use Supabase as an OAuth 2.1 authorization server and auth-js 2.112.3 for the consent page. Our resource server also records a per-client Project/operation ceiling, chosen explicitly by the signed-in user.

For a new request from an already-consented client, getAuthorizationDetails(authorizationId) can auto-approve and return only redirect_url. That response has no client ID or request details, so our consent page cannot identify the client or safely offer a change to the resource-server ceiling. We do not follow an unidentified redirect, infer the client from local grants, reuse the authorization code, or revoke existing grants as a recovery shortcut.

Is there a supported way for the OAuth client to request fresh, interactive consent for the same client while preserving its existing grant? Alternatively, is there a supported way to retrieve the authenticated request's verified client and scope before auto-approval? We found no force-consent option on getAuthorizationDetails in this SDK and no prompt parameter in the current OAuth Server authorization handler. Please clarify the supported flow and the minimum server/SDK versions, or confirm that preserving the existing grant is not currently supported for this use case.

Public references:

No account-specific details or production credentials are needed for this question.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions