We want to consume some of the #google APIs through #apigateway. Prerequisite of it to generate #oauth2.0 tokens to call Google API. Are there assertions available in GW, through which we can authenticate with #googleapi over oAuth2.0 framework?
Hello Sid, given your case I do not think you are looking to generate OAUTH tokens locally on the Gateway and use them for Google, but rather acting as a client in an OUATH flow to request and use tokens from Google.
See below documentation that explains the assertions you can use to achieve your required outcome:
Is there any sample policy available. If yes, that will be very helpful.
I have created a sample policy here using the Authorization Code grant: Retrieve OAuth 2.0 Token Assertion sample policy
This is intended only for guidance using the assertion and should not be used in production.