mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 16:53:38 +00:00
strip authorize suffix from issuer
This commit is contained in:
@@ -23,7 +23,10 @@ class TokenValidationError(Exception):
|
||||
def _normalize_issuer(value: str | None) -> str | None:
|
||||
if not value:
|
||||
return None
|
||||
return value.strip().rstrip("/")
|
||||
normalized = value.strip().rstrip("/")
|
||||
if normalized.endswith("/application/o/authorize"):
|
||||
normalized = normalized[: -len("/authorize")]
|
||||
return normalized.rstrip("/")
|
||||
|
||||
|
||||
class OidcTokenValidator:
|
||||
|
||||
Reference in New Issue
Block a user