fastmcp.server.auth.providers.in_memory
Classes
InMemoryOAuthProvider
An in-memory OAuth provider for testing purposes.
It simulates the OAuth 2.1 flow locally without external calls.
Methods:
get_client
register_client
authorize
load_authorization_code
exchange_authorization_code
load_refresh_token
exchange_refresh_token
load_access_token
verify_token
token
: The token string to validate
- AccessToken object if valid, None if invalid or expired