diff options
Diffstat (limited to 'tests/jwk-kty-rsa-incorrect.scm')
-rw-r--r-- | tests/jwk-kty-rsa-incorrect.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/jwk-kty-rsa-incorrect.scm b/tests/jwk-kty-rsa-incorrect.scm new file mode 100644 index 0000000..11ab368 --- /dev/null +++ b/tests/jwk-kty-rsa-incorrect.scm @@ -0,0 +1,18 @@ +(use-modules (webid-oidc stubs) + (webid-oidc testing) + (webid-oidc errors)) + +(with-test-environment + "jwk-kty-ec-incorrect" + (lambda () + (let* ((key (json-string->scm "{\"kty\":\"RSA\",\"e\":\"AQAB\",\"kid\":\"db7cdbbf-0ca3-48da-abf6-8f34002a4651\",\"n\":\"--\"}")) + (kty + (with-exception-handler + (lambda (exn) + #f) + (lambda () + (kty key)) + #:unwind? #t + #:unwind-for-type ¬-a-jwk))) + (when kty + (exit 1))))) |