fix: No static key fallback; reject non-OIDC tokens
This commit is contained in:
+1
-3
@@ -73,9 +73,7 @@ class AuthHeaders(BaseModel):
|
||||
# First check if it's a valid OIDC token
|
||||
if self.validate_oidc_token():
|
||||
return True
|
||||
# Fallback to the old static key for compatibility
|
||||
if token == "abc":
|
||||
return True
|
||||
# No static key fallback; reject non-OIDC tokens
|
||||
return False
|
||||
|
||||
def validate_oidc_token(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user