Skip to content

WWW-Authenticate headers #25

@ukw2d

Description

@ukw2d

According to trace, I see that headers are empty by default in a case of 401.

TRACE: 127.0.0.1:58010 - ASGI [2] Send {'type': 'http.response.start', 'status': 401, 'headers': '<...>'}

Accordint to OAuth MCP spec we need something like:

headers={
    "WWW-Authenticate": f'Bearer realm="{url}"'
}

RFC 6750

how to achieve that with mcp-auth?

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