| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Cloud Identity-Aware Proxy (Cloud IAP) lets you manage access to applications running in Compute Engine, App Engine standard environment, and Container Engine. Cloud IAP establishes a central authorization layer for applications accessed by HTTPS, enabling you to adopt an application-level access control model instead of relying on network-level firewalls. When you enable Cloud IAP, you must also use signed headers or the App Engine standard environment Users API to secure your app.
gcloud init
Deploy the demo app engine application. This application will return the JWT token to an authorized incoming request. It will be used to test both the authorization of an incoming request to an IAP protected resource and the JWT token returned from IAP.
Enable Identity-Aware Proxy on the App Engine app.
Add the service account email to the Identity-Aware Proxy access list for the project.
Update the following variables in BuildAndVerifyIapRequestIT.java:
IAP_PROTECTED_URL : URL of your IAP protected resource . eg. https://your-project-id.appspot.com
IAP_CLIENT_ID to point to the OAuth 2.0 Client ID of your IAP protected App Engine Application.
IAP_PROJECT_ID : Google Cloud Project ID of the IAP protected application
IAP_PROJECT_NUMBER : Project number of the IAP protected resource. Also available via gcloud using:
gcloud projects describe PROJECT_ID
Run the integration test:
mvn -Dtest=com.example.iap.BuildAndVerifyIapRequestIT verify
| Back | FazBrowse Home | New Git URL |