Spaces:
Running
Running
Jeremiah Lowin commited on
Remove redundant resource_metadata_url assignment (#1328)
Browse files
src/fastmcp/server/http.py
CHANGED
|
@@ -327,14 +327,6 @@ def create_streamable_http_app(
|
|
| 327 |
|
| 328 |
# Add StreamableHTTP routes with or without auth
|
| 329 |
if auth:
|
| 330 |
-
resource_metadata_url = None
|
| 331 |
-
|
| 332 |
-
if isinstance(auth, TokenVerifier) and auth.resource_server_url:
|
| 333 |
-
resource_metadata_url = AnyHttpUrl(
|
| 334 |
-
str(auth.resource_server_url).rstrip("/")
|
| 335 |
-
+ "/.well-known/oauth-protected-resource"
|
| 336 |
-
)
|
| 337 |
-
|
| 338 |
auth_middleware, auth_routes, required_scopes = (
|
| 339 |
setup_auth_middleware_and_routes(auth)
|
| 340 |
)
|
|
|
|
| 327 |
|
| 328 |
# Add StreamableHTTP routes with or without auth
|
| 329 |
if auth:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
auth_middleware, auth_routes, required_scopes = (
|
| 331 |
setup_auth_middleware_and_routes(auth)
|
| 332 |
)
|