fastmcp.client.auth.oauth
Functions
check_if_auth_required
- True if auth appears to be required, False otherwise
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
FastMCP 4 beta is here — get the latest MCP protocol. See what's new.
fastmcp.client.auth.oauthcheck_if_auth_required check_if_auth_required(mcp_url: str, httpx_kwargs: dict[str, Any] | None = None) -> bool
ClientNotFoundError ExpiredClientRegistrationError TokenStorageAdapter clear clear(self) -> None
get_tokens get_tokens(self) -> OAuthToken | None
set_tokens set_tokens(self, tokens: OAuthToken) -> None
get_token_expiry get_token_expiry(self) -> float | None
get_client_info get_client_info(self) -> OAuthClientInformationFull | None
set_client_info set_client_info(self, client_info: OAuthClientInformationFull) -> None
OAuth redirect_handler redirect_handler(self, authorization_url: str) -> None
callback_handler callback_handler(self) -> AuthorizationCodeResult
async_auth_flow async_auth_flow(self, request: httpx2.Request) -> AsyncGenerator[httpx2.Request, httpx2.Response]
