Skip to content

Commit

Permalink
Add documentation for using user system locally
Browse files Browse the repository at this point in the history
  • Loading branch information
shaked-hayek committed Jan 4, 2024
1 parent dfca9c4 commit 557993d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/USERAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,3 +547,14 @@ described in the [errors](#Errors) section of this document.
| Field missing | 24 | Bad Request (Field {} is missing from json). | 400 |


### For Debug - Make System Work Locally
1. In https://console.cloud.google.com/apis/credentials, under the anyway project, use the credentials of
"Web client - Debug", or create new credentials under "OAuth 2.0 Client IDs".
2. We want to add environment variables to the anyway docker service. One way to do that is to
add in the file anyway/docker-compose.yml, under services.environment, the following lines:
- GOOGLE_LOGIN_CLIENT_ID=<client_id>
- GOOGLE_LOGIN_CLIENT_SECRET=<secret>
- APP_SECRET_KEY=secretkey
Where client_id and secret are the credentials from #1.
4. Make sure to run docker-compose down and up, if it was up.
Login should work at this point.

0 comments on commit 557993d

Please sign in to comment.