Skip to content

Commit 5446ff3

Browse files
committed
chore: address review comments
1 parent b3a2417 commit 5446ff3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

mcpauth/auth/authorization_server_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class AuthServerModeConfig:
1616
"""
17-
Configuration for the legacy, MCP server as authorization server mode.
17+
Configuration for the legacy, MCP-server-as-authorization-server mode.
1818
"""
1919

2020
def __init__(self, server: AuthServerConfig):

mcpauth/auth/resource_server_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ResourceServerModeConfig:
2121
"""
22-
Configuration for the MCP server as resource server mode.
22+
Configuration for the MCP-server-as-resource-server mode.
2323
"""
2424

2525
def __init__(

mcpauth/middleware/create_bearer_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def create_bearer_auth(
177177
result = urlparse(config.issuer)
178178
if not all([result.scheme, result.netloc]):
179179
raise ValueError("Invalid URL")
180-
except:
180+
except ValueError:
181181
raise TypeError("`issuer` must be a valid URL.")
182182
elif not callable(config.issuer):
183183
raise TypeError("`issuer` must be either a string or a callable.")

mcpauth/utils/_bearer_www_authenticate_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def to_string(self) -> str:
2424

2525
@property
2626
def header_name(self) -> str:
27-
return "WWW-Authenticate"
27+
return "WWW-Authenticate"

0 commit comments

Comments
 (0)