This is a code to deploy sharedflows which are used when your backend is secured by GCP OAuth (via Service Account) or IAP (via Service Account).
- A GCP Project with, for example, an App Engine.
 - A service Account with good rights to call your App Engine and his JSON Key.
 - An Apigee account with an organization (free or paid).
 - Maven or apigeetools install on your computer to deploy the sharedflow.
 - Maven install on local computer.
 
- Create a new encrypted Key Value Map on your Apigee Organisation which name is gcp-service-account-credentials.
 - In this KVM, add a new key/value pair with a key name credentials and for value the JSON Key value.
 - Update cache files with good timeout in seconds for each environment :
 
This repository contain the maven configuration to deploy this sharedflow on 3 environments : dev, test or prd.
How to use it :
cd sharedflows/gcp-token-oauth
mvn install -P=dev -Dusername=XXXX -Dpassword=YYYY -Dorganization=ZZZZ