[fpc-devel] Google APIs - Authenticate using a service account?

Wayne Sherman wsherman at gmail.com
Mon Mar 14 06:31:03 CET 2022

On Tue, Jun 30, 2020 at 12:47 AM Michael Van Canneyt
<michael at freepascal.org> wrote:
> The problem with the service account is that you must create a JWT Token.
> FPC does not yet have a unit that can generate *and sign* a JWT Token.

I had a little time this weekend and started looking into this again.
I was happy to discover these recent developments:

     *Some new hash and elliptic curve crypto files*

     *Commit which adds support for Java Web Token (JWT) signing*
     (fpjwt.pp has new TJWTKey record, TJWTSigner class, and new
methods TJWT.Sign and TJWT.ValidateJWT)

     *Commit which adds ES256 JWT signing*
     (ES256 signing can be used for Google API service accounts)

Thank you Michael Van Canneyt.  :-)

More information about the fpc-devel mailing list