fastmcp/examples/auth/authkit_dcr
Jeremiah Lowin a8b100eb8c
Add JWT audience validation and RFC 8707 warnings to auth providers (#3204)
* Add JWT audience validation and RFC 8707 warnings to auth providers

* chore: Update SDK documentation

* Update AuthKit example README env var name

* Move RFC 8707 warnings inside default verifier guard

* chore: Update SDK documentation

---------

Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
2026-02-17 18:16:05 -05:00
..
client.py Add JWT audience validation and RFC 8707 warnings to auth providers (#3204) 2026-02-17 18:16:05 -05:00
README.md Add JWT audience validation and RFC 8707 warnings to auth providers (#3204) 2026-02-17 18:16:05 -05:00
server.py Add JWT audience validation and RFC 8707 warnings to auth providers (#3204) 2026-02-17 18:16:05 -05:00

AuthKit DCR Example

Demonstrates FastMCP server protection with AuthKit Dynamic Client Registration.

Setup

  1. Set your AuthKit domain:

    export AUTHKIT_DOMAIN="https://your-app.authkit.app"
    
  2. Run the server:

    python server.py
    
  3. In another terminal, run the client:

    python client.py
    

The client will open your browser for AuthKit authentication.