Some questions:1. How to verify the signature? My grep result in packages
folder doesn't show that we have HMAC256 function.2. The following
sample:{$mode objfpc}{$H+}uses fpjwt, jsonparser;const EncodedStr =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ';var
j: TJWT;begin j := TJWT.Create; j.AsString := EncodedStr;
WriteLn(j.AsString); WriteLn(EncodedStr); j.Free;end.Shows that the
original EncodedStr and j.AsString differs. Is this OK or a bug?
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/JSON-Web-Token-JWT-implementation-needed-tp5723516p5723521.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal