feat(auth): add OAuth 2.1 for remote MCP deployments#233
Draft
5queezer wants to merge 9 commits intostickerdaniel:mainfrom
Draft
feat(auth): add OAuth 2.1 for remote MCP deployments#2335queezer wants to merge 9 commits intostickerdaniel:mainfrom
5queezer wants to merge 9 commits intostickerdaniel:mainfrom
Conversation
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.
Summary
--auth oauthfor remote server deployments (e.g. Cloud Run, Fly.io)InMemoryOAuthProviderwith a password-based login page in the/authorizeflowChanges
linkedin_mcp_server/auth.pyPasswordOAuthProviderwith login page, brute-force lockout (5 attempts)linkedin_mcp_server/config/schema.pyOAuthConfigdataclass + validation (skipped for--login/--status/--logout)linkedin_mcp_server/config/loaders.pyAUTH,OAUTH_BASE_URL,OAUTH_PASSWORDenv vars + CLI argslinkedin_mcp_server/server.pyauth=PasswordOAuthProvider(...)toFastMCP()when enabledlinkedin_mcp_server/cli_main.pyoauth_configthrough tocreate_mcp_server()tests/test_auth.pytests/test_config.pyREADME.mddocs/docker-hub.mdmanifest.jsonuser_configSecurity
secrets.compare_digest)html.escape()on all template inputsTest plan
uv run pytest --cov -v)--auth oauth, verify 401 on unauthenticated/mcp, verify.well-known/oauth-authorization-serverreturns metadataPrompt
Closes #231
🤖 Generated with Claude Code (Claude Opus 4.6)