Conversation
Contributor
There was a problem hiding this comment.
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 |
Closed
jordicore
pushed a commit
to jordicore/fastmcp
that referenced
this pull request
Jul 2, 2025
Add docs for server + client auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds documentation for client-side OAuth (#478) and Bearer Auth, and server-side Bearer Auth (#650).
Closes #362
Closes #41