You are not logged in.
Pages: 1
Hi,
I have created this support for RS256, RS384 and RS512 in JWT using openssl.
Files are included in this zip:
https://www.dropbox.com/s/hnuf3qsgx3o52 … S.zip?dl=0
It needs a few additions to openssl.pas which is also included.
Both signing and verifying works. Feel free to use in mORMot (even better, because you will probably optimize it further :-) )
Kind regards,
Martijn
Offline
I've integrated the SynOpenSSL.pas small additions, but the rest needs more review.
See https://synopse.info/fossil/info/41a009ce3c
Thanks for sharing!
Offline
I've integrated the SynOpenSSL.pas small additions, but the rest needs more review.
See https://synopse.info/fossil/info/41a009ce3cThanks for sharing!
Great, that makes maintaince easier...
And a small fix in TJWTAsymetric.SetPublicKey:
The "FPublicKey := Value;" needs to be after the "if FPublicKey <> Value then"...
(Always nice those last moment changes...)
Offline
Is it possible to create RS256 JWT assertions using mormot?
I need to integrate with 3rd party systems that requires it, and looking for a pain-free way to generate the jwt assertions. Unfortunately rs256 is a requirement from them.
Offline
Offline
Thanks ab
It looks like the code provided by @MCvanderKooij works very well as-is, I just had to add SynTable to the uses clause of uJWTRSA.
Offline
JOSE JWT lib can be also used with TJWTAbstract subclass as an alternative: https://github.com/paolo-rossi/delphi-jose-jwt
Offline
Pages: 1