[GoogleAPIToken] Error after use component

Forge Component
(3)
Published on 2 Jul by Miguel João
3 votes
Published on 2 Jul by Miguel João

Hello there,

I catch this error after put parameters for google json credentials:

ClientEmail

PrivateKey


Hello Thiago,


The error suggests that the private key content is either incomplete or corrupted. The privat ekey format must be multiline and using the following structure:

-----BEGIN RSA PRIVATE KEY-----
MIIBOQIBAAJBAIOLepgdqXrM07O4dV/nJ5gSA12jcjBeBXK5mZO7Gc778HuvhJi+
RvqhS..................................................QzhwkDbck
3GJEZuAB/vd3AiASmnvOZs9BuKgkCdhlrtlM6/7E+y1p++VU6bh2+mI8ZwIgf4Qh
u+zYCJfIjtJJpH1lHZW+A60iThKtezaCk7FiAC4= 
-----END RSA PRIVATE KEY-----

Hope this information helps.


Cheers

Hi, I got the exactly same issue... 

What am I missing? 


"-----BEGIN RSA PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDBg9IJSutGxoZA\nZkTdMxMbxP07/l8x8Zc3oCIv3RaOSa.....VHVSDgcvq5sFH6H\npIvdQcKE9U/4YSl5OZF/7asUDcxK9jd8rd7bQeVjN5rDU4SSUlwZd83ewSHC4pct\nsbqQ9+BKLeCPsYSo2qBcLFI=
-----END RSA PRIVATE KEY-----"

Hello Lorena,

I had similar problems due to line endings characters (CRLF) or text enconding (non-UTF8). How are you setting the private key in the GetToken server action.