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

Michael Van Canneyt michael at freepascal.org
Fri Jul 10 11:31:47 CEST 2020



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

> Op 10-07-2020 om 11:02 schreef Michael Van Canneyt:
>
>>> 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.
>
> No, googleapi should be removed from the base distribution. That makes 
> it also easier to respond on changes and to release them more often. 
> However this is in principle also possible with fppkg when they are in 
> the base distribution.

The JWT issue is independent of Google APIs.

>
> Also I don't think that many other languages have JWT support in their 
> base distribution.

FPC is more than just the language, it's a full library and run-time system.

And run-time is shifting to web:
Most desktop applications I know are being moved (or have moved) to the web.

I believe that soon, the only native apps left will be services and apps that
need hardware access (automation etc.)

So I think the FPC base system should contain everything to be able to
program web (without forgetting the services and hardware access,
obviously), and I consider JWT to be part of that base layer.

I won't argue to move Google APIS to fppkg once the latter is fully functional.
I have started to port the fppkg Web frontend to pas2js, by the way, so I hope 
to have it working before the summer is out and we can then put it online.

Michael.


More information about the fpc-devel mailing list