You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry but this is not my requirement :) My requirement is to be able to validate a JWT using a single JWK - This works for HS (symmetric) and RS/EC (asymmetric) keys.
One way to do this could be to separate the retrieval of the key from the validation step. When you validate, you validate against a single JWK. The logic to retrieve that key could be simple, or not. I had to create a loop across a JWKS once for a customer as we did not have the kid inside the JWT header. If the retrieval of the key is part of the validation logic, I can't do that.
So something like:
Key retrieval (keyid, jwks | local JWK file) or my custom logic -> JWK Object
Current Limitation
Currently Ballerina crypto module does not support the public-key format generated with
ssh-keygen
Suggested Improvement
We need to include add support to decode public-keys generated with
ssh-keygen
Steps
ssh-keygen
With the above command two files will be generated
private.key
andprivate.key.pub
(which is the public key)The text was updated successfully, but these errors were encountered: