Skip to content

Embedded auth server: PRM and AS metadata advertise inconsistent scopes #3776

Closed

Description

@jhrozek

Problem

When using the embedded auth server, the Protected Resource Metadata (PRM) endpoint and the Authorization Server (AS) metadata endpoint advertise different default scopes:

  • AS metadata (/.well-known/oauth-authorization-server): ["openid", "profile", "email", "offline_access"]
  • PRM (/.well-known/oauth-protected-resource): ["openid"]

MCP clients use PRM scopes_supported (per MCP 2025-11-25 Scope Selection Strategy) to determine what scopes to request. With only openid in PRM, clients never request offline_access, so no refresh token is issued.

Expected behavior

PRM and AS metadata should advertise consistent scopes when using the embedded auth server. The PRM default should include offline_access so clients can obtain refresh tokens out of the box.

Impact

Clients must re-authenticate (full OAuth flow with consent screen) every time the access token expires.

Activity

  1. added
    bug
    go
    on Feb 11, 2026
  2. self-assigned this
    on Feb 11, 2026
  3. added 3 commits that reference this issue on Feb 11, 2026
    cd0af37
    8405152
    d2f9e77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

authenticationbuggo

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions