Some comments and TODO regarding expected issuer

pull/3586/head
David Núñez 2024-12-27 10:29:44 +01:00
parent 5464006500
commit 46d26768e7
1 changed files with 2 additions and 0 deletions

View File

@ -25,10 +25,12 @@ class JWTVerificationCall(ExecutionCall):
class Schema(ExecutionCall.Schema):
jwt_token = fields.Str(required=True) # TODO: validate jwt encoded format
# TODO: See #3572 for a discussion about deprecating this in favour of the expected issuer
public_key = fields.Str(
required=True
) # required? maybe a valid PK certificate passed by requester?
expected_issuer = fields.Str(required=False, allow_none=True)
# TODO: StringOrURI as per the spec.
# subject = fields.Str(required=False)
# expiration_window = fields.Int(
# strict=True, required=False, validate=validate.Range(min=0), allow_none=True