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,21 @@
from authlib.oauth2.rfc8414.models import validate_boolean_value
class AuthorizationServerMetadata(dict):
"""Authorization Server Metadata extension for RFC9101 (JAR).
This class can be used with
:meth:`~authlib.oauth2.rfc8414.AuthorizationServerMetadata.validate`
to validate JAR-specific metadata::
from authlib.oauth2 import rfc8414, rfc9101
metadata = rfc8414.AuthorizationServerMetadata(data)
metadata.validate(metadata_classes=[rfc9101.AuthorizationServerMetadata])
"""
REGISTRY_KEYS = ["require_signed_request_object"]
def validate_require_signed_request_object(self):
"""Indicates where authorization request needs to be protected as Request Object and provided through either request or request_uri parameter."""
validate_boolean_value(self, "require_signed_request_object")