first commit

This commit is contained in:
linkitapps
2026-09-14 23:22:10 +09:00
commit 9f9c8fb69b
4207 changed files with 1333187 additions and 0 deletions
@@ -0,0 +1,13 @@
from authlib.common.security import is_secure_transport
class OpenIDProviderMetadata(dict):
REGISTRY_KEYS = ["end_session_endpoint"]
def validate_end_session_endpoint(self):
# rpinitiated §2.1: "end_session_endpoint - URL at the OP to which an
# RP can perform a redirect to request that the End-User be logged out
# at the OP. This URL MUST use the https scheme."
url = self.get("end_session_endpoint")
if url and not is_secure_transport(url):
raise ValueError('"end_session_endpoint" MUST use "https" scheme')