fastmcp.client.auth.oauth
Functions
check_if_auth_required
- True if auth appears to be required, False otherwise
Join the FastMCP community!
fastmcp.client.auth.oauthcheck_if_auth_required check_if_auth_required(mcp_url: str, httpx_kwargs: dict[str, Any] | None = None) -> bool
ClientNotFoundError TokenStorageAdapter clear clear(self) -> None
get_tokens get_tokens(self) -> OAuthToken | None
set_tokens set_tokens(self, tokens: OAuthToken) -> 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) -> tuple[str, str | None]
async_auth_flow async_auth_flow(self, request: httpx.Request) -> AsyncGenerator[httpx.Request, httpx.Response]