Skip to content

Persist server-registered scopes on DCR clients and limit later sign-ins (upstream #2402) #68

Open

Description

@shuv1337

Follow-up from #67 (which did not port upstream UsefulSoftwareCo#2402 / UsefulSoftwareCo#2403).

Goal: store the scopes the authorization server actually registered on dynamically registered (DCR) OAuth clients, and limit later sign-ins to those scopes.

Context: v2 already avoids UsefulSoftwareCo#2403's invalid_scope bug, because it reuses a DCR client only when the full registration, including the sorted scope set, matches (packages/sdk/src/implementation/oauth.ts:1103, stored-oauth-client-credentials.ts:184). What's missing is persisting server-registered scopes and limiting to them.

Links: UsefulSoftwareCo#2402, UsefulSoftwareCo#2403, #67

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions