Spaces:
Sleeping
Sleeping
sstene1 commited on
Update bearer.py
Browse files
src/fastmcp/server/auth/providers/bearer.py
CHANGED
|
@@ -159,7 +159,7 @@ class BearerAuthProvider(OAuthProvider):
|
|
| 159 |
Note that this provider DOES NOT permit client registration or revocation, or any OAuth flows.
|
| 160 |
It is intended to be used with a control plane that manages clients and tokens.
|
| 161 |
"""
|
| 162 |
-
|
| 163 |
def __init__(
|
| 164 |
self,
|
| 165 |
public_key: str | None = None,
|
|
@@ -210,8 +210,6 @@ class BearerAuthProvider(OAuthProvider):
|
|
| 210 |
self.audience = audience
|
| 211 |
self.public_key = public_key
|
| 212 |
self.jwks_uri = jwks_uri
|
| 213 |
-
|
| 214 |
-
# TODO : Add support for configurable algorithms
|
| 215 |
self.jwt = JsonWebToken([self.algorithm]) # Use RS256 by default
|
| 216 |
self.logger = get_logger(__name__)
|
| 217 |
|
|
|
|
| 159 |
Note that this provider DOES NOT permit client registration or revocation, or any OAuth flows.
|
| 160 |
It is intended to be used with a control plane that manages clients and tokens.
|
| 161 |
"""
|
| 162 |
+
|
| 163 |
def __init__(
|
| 164 |
self,
|
| 165 |
public_key: str | None = None,
|
|
|
|
| 210 |
self.audience = audience
|
| 211 |
self.public_key = public_key
|
| 212 |
self.jwks_uri = jwks_uri
|
|
|
|
|
|
|
| 213 |
self.jwt = JsonWebToken([self.algorithm]) # Use RS256 by default
|
| 214 |
self.logger = get_logger(__name__)
|
| 215 |
|