@@ -29,14 +29,20 @@ These samples are used on the following documentation pages:
29
29
30
30
1 . Enable the IAM API on your project.
31
31
2 . 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
+ ```
34
36
3 . 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
36
39
--role=roles/iam.serviceAccountActor
37
- --member=serviceAccount:SERVICE_ACCOUNT```
40
+ --member=serviceAccount:SERVICE_ACCOUNT
41
+ ```
38
42
4 . 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
+ ```
40
46
5 . Copy ` make_iap_request.py ` into your application.
41
47
42
48
### Using a downloaded service account private key
@@ -47,7 +53,9 @@ These samples are used on the following documentation pages:
47
53
2 . Set the environment variable ` GOOGLE_APPLICATION_CREDENTIALS ` to the path
48
54
to your service account's ` .json ` file.
49
55
3 . 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
+ ```
51
59
4 . Copy ` make_iap_request.py ` into your application.
52
60
53
61
If you prefer to manage service account credentials manually, this method can
@@ -64,7 +72,9 @@ of how to do this.)
64
72
For all other environments:
65
73
66
74
1 . 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
+ ```
68
78
2 . Copy ` validate_jwt.py ` into your application.
69
79
70
80
## Running Tests
0 commit comments