From 9d47a0319d54d2508c8445513f0e66d152742706 Mon Sep 17 00:00:00 2001 From: Jonas Groeger <jonas.groeger@codecentric.de> Date: Sun, 13 Jun 2021 23:36:59 +0200 Subject: [PATCH] feat/jwk-required: Make more JWK fields required https://git.fitko.de/fit-connect/api/-/issues/51 --- spec/schemas/jwk.yml | 45 +++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/spec/schemas/jwk.yml b/spec/schemas/jwk.yml index d343fa44..043c0c68 100644 --- a/spec/schemas/jwk.yml +++ b/spec/schemas/jwk.yml @@ -4,52 +4,45 @@ description: JSON Web Key - RFC 7517 additionalProperties: false required: - kty + - key_ops + - alg + - x5c - kid + - n + - e properties: kty: type: string description: Key Type enum: - - EC - RSA - - oct - - OKP - use: - type: string - description: Public Key Use - enum: - - sig - - enc key_ops: type: array description: Key Operations items: type: string enum: - - sign - verify - - encrypt - - decrypt - wrapKey - - unwrapKey - - deriveKey - - deriveBits alg: type: string description: Algorithm - kid: - description: Key ID - type: string - x5u: - type: string - description: X.509 URL - format: uri + enum: + - PS512 + - RSA-OAEP-256 x5c: - description: X.509 Certificate Chain type: array + description: X.509 Certificate Chain items: type: string - x5t: + kid: type: string - x5t#S256: - type: string \ No newline at end of file + description: Key ID + n: + type: string + description: Modulus + e: + type: string + description: Exponent + enum: + - AQAB -- GitLab