Skip to content

Static OAuth client loses its SEP-2352 issuer stamp across SDK saves and restarts #2751

Closed

Description

@cliffhall

Problem

For a static (preregistered) OAuth client, the SEP-2352 issuer stamp doesn't survive SDK saves and CLI restarts, so the issuer binding is missing and the SDK warns again on every run.

In core/auth/providers.ts:

  • clientInformation() returns the preregistered slot first (issuer-independent).
  • The SDK's back-stamp after discovery goes through saveClientInformation() with { issuer } only. That routes through resolveSdkRegistrationKind into the per-issuer dynamic slot, which the preregistered read never looks at.
  • Re-seeding the static client at init then drops whatever was stamped.

The effect: the binding falls back to the SDK's unbound legacy behaviour, and the warning repeats on every restart. Reported against 2.11.0.

Expected

Once the SDK has stamped the issuer for a preregistered client, the stamp persists with that client and is returned on the next read. Re-seeding the same static client at startup keeps an existing stamp unless the client itself changed.

Notes

  • Cover it with a test: save a preregistered client, SDK back-stamp with { issuer }, re-init with the same static config, then assert the issuer is present and no warning fires.

Priority score

Severity 3, Urgency 3, +1 bug, +1 milestone, Total 8 → Medium.

Activity

  1. added this to the v2.13.0 milestone on Oct 21, 2026
  2. added
    bug
    v2
    on Oct 21, 2026
  3. rajnish-verma-22172 commented on Oct 21, 2026

    @rajnish-verma-22172

    Hi, I'd like to work on this. My plan is to trace how preregistered OAuth client information is saved and restored, then add a regression test for the SDK issuer stamp surviving a save and restart (including re-seeding the same static client) before making the smallest fix.

  4. rajnish-verma-22172 commented on Oct 21, 2026

    @rajnish-verma-22172

    I completed a local prototype, but I’m following the repository’s contribution policy and will not open a source PR. Here is the implementation prompt for a maintainer to take forward:

    Preserve the issuer binding for a preregistered OAuth client when SDK saves and reinitializes client information. Add regression coverage for persistence across save/restart and SDK issuer stamping, while preserving behavior when the configured client changes or authorization-server discovery resolves a different issuer. Keep the fix focused and verify with the OAuth provider and issuer-migration tests.

    The focused provider suite passed (58 tests), the targeted issuer-migration integration test passed, and the web TypeScript build passed. The full npm run local:gate was not rerun after the final integration fix, so I’m not claiming a full-gate pass. No screenshots apply to this core OAuth change.

    Would an Inspector maintainer be willing to take this forward as an official PR? Once there is a public PR URL, I can submit that URL to HackAaroh.

  5. self-assigned this
    on Oct 25, 2026
  6. cliffhall commented on Oct 25, 2026

    @cliffhall
    MemberAuthor

    Fixed by #2794 (merged to v2/main in 5157cdb).

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

Metadata

Metadata

Assignees

Labels

bugv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions