Skip to content

When no authorization is required dont fail on missing user scope 401 Unauthorized #615 #616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yonigottesman opened this issue May 2, 2025 · 0 comments
Assignees

Comments

@yonigottesman
Copy link

While developing a mcp server that wil run locally I want to use the sse protocal and not stdio. Because im running local i dont need any authentication, but the default RequireAuthMiddleware will fail if if not isinstance(auth_user, AuthenticatedUser).

I want the solution to be
if not isinstance(auth_user, AuthenticatedUser) and self.required_scopes: so if there are no required scopes I wont have to do anything and i can just connect to the server withtou any autherization

I submitted a pr #615

@yonigottesman yonigottesman changed the title When no authorization is required dont fail on missing user scope #615 When no authorization is required dont fail on missing user scope 401 Unauthorized #615 May 2, 2025
@ihrpr ihrpr self-assigned this May 2, 2025
@ihrpr ihrpr added this to the 2025-03-26 spec release milestone May 2, 2025
@ihrpr ihrpr closed this as completed May 2, 2025
@ihrpr ihrpr reopened this May 2, 2025
@ihrpr ihrpr closed this as completed May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants