build: Add type checking

This commit is contained in:
Chris Coutinho
2025-11-05 15:19:55 +01:00
parent 9dcda0cd6a
commit 6cccd92b3b
17 changed files with 104 additions and 47 deletions
+2 -1
View File
@@ -165,6 +165,7 @@ class NextcloudTokenVerifier(TokenVerifier):
"""
try:
# Get signing key from JWKS
assert self._jwks_client is not None # Caller should check before calling
signing_key = self._jwks_client.get_signing_key_from_jwt(token)
# Verify and decode JWT
@@ -257,7 +258,7 @@ class NextcloudTokenVerifier(TokenVerifier):
try:
# Introspection requires client authentication
response = await self._client.post(
self.introspection_uri,
self.introspection_uri, # type: ignore
data={"token": token},
auth=(self.client_id, self.client_secret),
)