Skip to content

Conversation

@jlowin
Copy link
Owner

@jlowin jlowin commented Jun 2, 2025

Adds documentation for client-side OAuth (#478) and Bearer Auth, and server-side Bearer Auth (#650).

Closes #362
Closes #41

Copilot AI review requested due to automatic review settings June 2, 2025 01:33
@jlowin jlowin added feature Major new functionality. Reserved for 2-4 significant PRs per release. Not for issues. auth Related to authentication (Bearer, JWT, OAuth, WorkOS) for client or server. labels Jun 2, 2025
@github-actions github-actions bot added documentation Updates to docs, examples, or guides. Primary change is documentation-related. tests client Related to the FastMCP client SDK or client-side functionality. labels Jun 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes authentication-related modules and updates the documentation for both server and client authentication. Key changes include:

  • Refactoring import paths for OAuth and BearerAuth across tests and client modules
  • Separating the BearerAuth implementation into its own module
  • Updating and adding new documentation while removing outdated authentication docs

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/auth/test_oauth_client.py Updated import paths for OAuth to reflect module changes
tests/auth/providers/test_bearer.py Updated import for BearerAuth to new module path
src/fastmcp/server/auth/init.py Added BearerAuthProvider export
src/fastmcp/client/transports.py Updated OAuth import to new module path
src/fastmcp/client/auth/oauth.py Removed BearerAuth code (now in its own file)
src/fastmcp/client/auth/bearer.py Added new BearerAuth implementation using SecretStr
src/fastmcp/client/auth/init.py Updated exports to include new BearerAuth
src/fastmcp/client/init.py Updated exports to include BearerAuth
docs/servers/auth/bearer.mdx New documentation for server bearer authentication
docs/docs.json Updated documentation structure with new auth grouping
docs/deployment/authentication.mdx Removed outdated authentication documentation
docs/clients/auth/oauth.mdx New documentation for OAuth authentication for clients
docs/clients/auth/bearer.mdx New documentation for client bearer authentication

@jlowin jlowin mentioned this pull request Jun 2, 2025
Closed
@jlowin jlowin merged commit 97ef80c into main Jun 2, 2025
5 checks passed
@jlowin jlowin deleted the auth-docs branch June 2, 2025 01:40
jordicore pushed a commit to jordicore/fastmcp that referenced this pull request Jul 2, 2025
Add docs for server + client auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth Related to authentication (Bearer, JWT, OAuth, WorkOS) for client or server. client Related to the FastMCP client SDK or client-side functionality. documentation Updates to docs, examples, or guides. Primary change is documentation-related. feature Major new functionality. Reserved for 2-4 significant PRs per release. Not for issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add pre-built auth // easy deployment stories Auth

2 participants