Hi @dchiesa1 I am testing out the samples for cloud logging from my Apigee X Proxy. (I do have the other method working where we don't need to go the JWT route - but i still think this is valuable to get it up and running )I am having two issues.
I have downloaded a service account key JSON key with the correct logging permissions. From there, i have - for simplicity - just hard coded it into the AssignMessage Policy. I have tried all the suggestions, from copying the private key into a private variable in the AssignMessage Policy with the "\n" removed ,replaced with backslashes and just creating everything as one line. However, all of them fail with the
The funny thing is this step passes if I use the HS256 Algorithm, but thens the oauth token callout fails with a 400 error. I read somewhere that it only works if you use RS256 - hence I am stuck. If anyone has suggestions, I am open.
Thanks
Solved! Go to Solution.
Hi @dchiesa1 , sorry for the late response. First off, really want to take the time to thanks you for helping all of us out - really appreciate it. Secondly, this soln works great!! This fixed the problem of the formatting. I am now able to invoke the cloud logging API.
Thanks