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

Joost van der Sluis joost at cnoc.nl
Fri Jul 10 10:45:26 CEST 2020


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.

Regards,

Joost.







More information about the fpc-devel mailing list