You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make sure that you run the command before running `schematic init` below
140
137
141
138
7. Obtain Google credential Files
142
-
143
-
To obtain ``credentials.json`` and ``token.pickle``, please run:
144
-
139
+
To obtain ``schematic_service_account_creds.json``, please run:
145
140
```
146
141
schematic init --config ~/path/to/config.yml
147
142
```
148
-
This should prompt you with a URL that will take you through Google OAuth. Your `credentials.json` and `token.pickle` will get automatically downloaded the first time you run this command.
149
-
150
-
*Note* : The ``credentials.json`` file is required when you are using
> As v22.12.1 version of schematic, using `token` mode of authentication (in other words, using `token.pickle` and `credentials.json`) is no longer supported due to Google's decision to move away from using OAuth out-of-band (OOB) flow. Click [here](https://developers.google.com/identity/protocols/oauth2/resources/oob-migration) to learn more.
159
144
160
-
To obtain ``schematic_service_account_creds.json``, please run:
*Notes*: Use the ``schematic_service_account_creds.json`` file for the service
165
146
account mode of authentication (*for Google services/APIs*). Service accounts
166
147
are special Google accounts that can be used by applications to access Google APIs
@@ -224,16 +205,19 @@ docker run --rm -p 3001:3001 \
224
205
python /usr/src/app/run_api.py
225
206
```
226
207
227
-
#### Use content of `config.yml` as an environment variable to run API endpoints:
228
-
1. save content of `config.yml` as to environment variable `SCHEMATIC_CONFIG_CONTENT` by doing: `export SCHEMATIC_CONFIG_CONTENT=$(cat config.yml)`
208
+
#### Use content of `config.yml` and `schematic_service_account_creds.json`as an environment variable to run API endpoints:
209
+
1. save content of `config.yml` as to environment variable `SCHEMATIC_CONFIG_CONTENT` by doing: `export SCHEMATIC_CONFIG_CONTENT=$(cat /path/to/config.yml)`
210
+
211
+
2. Similarly, save the content of `schematic_service_account_creds.json` as `SERVICE_ACCOUNT_CREDS` by doing: `export SERVICE_ACCOUNT_CREDS=$(cat /path/to/schematic_service_account_creds.json)`
229
212
230
-
2. Pass `SCHEMATIC_CONFIG_CONTENT`as an environment variable by using `docker run`
213
+
3. Pass `SCHEMATIC_CONFIG_CONTENT`and `schematic_service_account_creds` as environment variables by using `docker run`
0 commit comments