From cce1889fd97f8d0e62f014aa66db522653d532a4 Mon Sep 17 00:00:00 2001 From: sstene1 Date: Mon, 30 Jun 2025 17:13:21 -0500 Subject: [PATCH] Update bearer.py Remove TODO --- src/fastmcp/server/auth/providers/bearer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fastmcp/server/auth/providers/bearer.py b/src/fastmcp/server/auth/providers/bearer.py index 3656783cf..01d9a1710 100644 --- a/src/fastmcp/server/auth/providers/bearer.py +++ b/src/fastmcp/server/auth/providers/bearer.py @@ -159,7 +159,7 @@ class BearerAuthProvider(OAuthProvider): Note that this provider DOES NOT permit client registration or revocation, or any OAuth flows. It is intended to be used with a control plane that manages clients and tokens. """ - #TODO: Add support for configurable algorithms 'e.g. algorithm= HS256, ES256, etc.' + def __init__( self, public_key: str | None = None, @@ -210,8 +210,6 @@ class BearerAuthProvider(OAuthProvider): self.audience = audience self.public_key = public_key self.jwks_uri = jwks_uri - - # TODO : Add support for configurable algorithms self.jwt = JsonWebToken([self.algorithm]) # Use RS256 by default self.logger = get_logger(__name__)