We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2541784 commit 443099cCopy full SHA for 443099c
src/auth_server/cert_utils.py
@@ -153,7 +153,7 @@ def get_org_id_siths(cert: Certificate) -> str | None:
153
# Check that the certificate has enhancedKeyUsage clientAuth
154
try:
155
enhanced_key_usage = cert.extensions.get_extension_for_oid(ExtensionOID.EXTENDED_KEY_USAGE)
156
- if OID_ENHANCED_KEY_USAGE_CLIENT_AUTHENTICATION not in enhanced_key_usage.value:
+ if OID_ENHANCED_KEY_USAGE_CLIENT_AUTHENTICATION not in enhanced_key_usage.value: # type: ignore[operator]
157
logger.error(f"certificate {cert_fingerprint} has no enhancedKeyUsage clientAuth")
158
return None
159
except ExtensionNotFound:
0 commit comments