[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*
https://gitlab.com/freepascal.org/fpc/source/-/tree/main/packages/fcl-hash/src
*Commit which adds support for Java Web Token (JWT) signing*
https://gitlab.com/freepascal.org/fpc/source/-/commit/47610d5c651a232a2061a44e2358b147ba65ff1c
(fpjwt.pp has new TJWTKey record, TJWTSigner class, and new
methods TJWT.Sign and TJWT.ValidateJWT)
*Commit which adds ES256 JWT signing*
https://gitlab.com/freepascal.org/fpc/source/-/commit/5afaeaa3ac813e5682d0da9de7d17454a4771d2c
(ES256 signing can be used for Google API service accounts)
Thank you Michael Van Canneyt. :-)
More information about the fpc-devel
mailing list