Skip to content

Instantly share code, notes, and snippets.

@DinoChiesa
Created April 5, 2022 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DinoChiesa/3e70ca95edb1d45b274463b8a252d279 to your computer and use it in GitHub Desktop.
Save DinoChiesa/3e70ca95edb1d45b274463b8a252d279 to your computer and use it in GitHub Desktop.
Apigee target endpoint showing the use of implicit GCP authentication
<TargetEndpoint name="target-1">
<PreFlow name="PreFlow">
<Request>
<Step>
<Name>AM-Query</Name>
</Step>
</Request>
<Response>
<Step>
<Name>AM-Clean-Response-Headers</Name>
</Step>
</Response>
</PreFlow>
<PostFlow name="PostFlow">
<Request/>
<Response>
</Response>
</PostFlow>
<Flows/>
<HTTPTargetConnection>
<!-- tell Apigee to invoke this with a Google Access Token -->
<!-- see https://cloud.google.com/apigee/docs/api-platform/security/google-auth/overview -->
<Authentication>
<GoogleAccessToken>
<Scopes>
<Scope>https://www.googleapis.com/auth/cloud-platform</Scope>
</Scopes>
</GoogleAccessToken>
</Authentication>
<SSLInfo>
<Enabled>true</Enabled>
<IgnoreValidationErrors>false</IgnoreValidationErrors>
</SSLInfo>
<Properties/>
<!-- assemble the target path -->
<URL>https://bigquery.googleapis.com/bigquery/v2/projects/{{= projectId}}/queries</URL>
</HTTPTargetConnection>
</TargetEndpoint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment