On Fri, 10 Jul 2020, Joost van der Sluis wrote:

Op 30-06-2020 om 09:47 schreef Michael Van Canneyt:

On Fri, 26 Jun 2020, Wayne Sherman via fpc-devel wrote:

Is there support in the fpc google api units for authenticating as a
service account?

Background:
Service accounts allow an application to interact with Google APIs
without authenticating as a specific user.  Instead a service account
is created with it's own credentials, ID, and key.  By authenticating
as a service account, applications can perform tasks on behalf of the
users in a G Suite domain without having to have their login
passwords.

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.

There is:

 fppkg install cnocOIDC

And you will have JWT support. Have a look at the TcnocOIDCIDTokenClaim and TcnocRSAPublicKey/TcnocRSAPrivateKey classes.

Joost,

I am aware of that, but this kind of basic functionality *really* should be in 
the base distribution.

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to