Michael Van Canneyt, there is a discussion about using fphttpclient with Google API service account on the forums:
https://forum.lazarus.freepascal.org/index.php/topic,51478.0.html
The last post has a code example of signing a JWT: https://forum.lazarus.freepascal.org/index.php/topic,51478.msg381426.html#msg381426
Is that basically what is needed to get it working?
