Created
April 5, 2022 01:51
-
-
Save DinoChiesa/3e70ca95edb1d45b274463b8a252d279 to your computer and use it in GitHub Desktop.
Apigee target endpoint showing the use of implicit GCP authentication
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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