@@ -29,14 +29,20 @@ These samples are used on the following documentation pages:
2929
30301 . Enable the IAM API on your project.
31312 . Create a VM with the IAM scope:
32- ``` gcloud compute instances create INSTANCE_NAME
33- --scopes=https://www.googleapis.com/auth/iam```
32+ ```
33+ gcloud compute instances create INSTANCE_NAME
34+ --scopes=https://www.googleapis.com/auth/iam
35+ ```
34363 . Give your VM's default service account the ` Service Account Actor ` role:
35- ```gcloud projects add-iam-policy-binding PROJET_ID
37+ ```
38+ gcloud projects add-iam-policy-binding PROJET_ID
3639 --role=roles/iam.serviceAccountActor
37- --member=serviceAccount:SERVICE_ACCOUNT```
40+ --member=serviceAccount:SERVICE_ACCOUNT
41+ ```
38424 . Install the libraries listed in ` requirements.txt ` , e.g. by running:
39- ```virtualenv/bin/pip install -r requirements.txt```
43+ ```
44+ virtualenv/bin/pip install -r requirements.txt
45+ ```
40465 . Copy ` make_iap_request.py ` into your application.
4147
4248### Using a downloaded service account private key
@@ -47,7 +53,9 @@ These samples are used on the following documentation pages:
47532 . Set the environment variable ` GOOGLE_APPLICATION_CREDENTIALS ` to the path
4854 to your service account's ` .json ` file.
49553 . Install the libraries listed in ` requirements.txt ` , e.g. by running:
50- ```virtualenv/bin/pip install -r requirements.txt```
56+ ```
57+ virtualenv/bin/pip install -r requirements.txt
58+ ```
51594 . Copy ` make_iap_request.py ` into your application.
5260
5361If you prefer to manage service account credentials manually, this method can
@@ -64,7 +72,9 @@ of how to do this.)
6472For all other environments:
6573
66741 . Install the libraries listed in ` requirements.txt ` , e.g. by running:
67- ```virtualenv/bin/pip install -r requirements.txt```
75+ ```
76+ virtualenv/bin/pip install -r requirements.txt
77+ ```
68782 . Copy ` validate_jwt.py ` into your application.
6979
7080## Running Tests
0 commit comments