From ef83c1f7bcbf27f8c6c94223f069b8c8ab7bd75e Mon Sep 17 00:00:00 2001 From: Roseford Date: Wed, 15 Mar 2023 17:41:44 +0100 Subject: [PATCH 1/2] Added more details to Getting-Started.md --- docs/DEV-1.-Getting-Started.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/DEV-1.-Getting-Started.md b/docs/DEV-1.-Getting-Started.md index 43253dfb60..6adaaff403 100644 --- a/docs/DEV-1.-Getting-Started.md +++ b/docs/DEV-1.-Getting-Started.md @@ -81,17 +81,17 @@ These steps are essential to run and test your code! The FMTM uses OAUTH2 with OSM to authenticate users. To properly configure your FMTM project, you will need to create keys for OSM. -1. Login to OSM, Click on My Settings and register your local fmtm backend app to Oauth2applications +1. [Login to OSM](https://www.openstreetmap.org/login). If you do not have an account yet, click the signup button at the top navigation bar to create one. Click the drop down arrow on the extreme right of the navigation bar and select My Settings. -2. Put your login redirect url as `http://127.0.0.1:8000/auth/callback/`, For Production replace the URL as production API Url +2. Register your local fmtm backend app to OAuth 2 applications. Put your login redirect url as `http://127.0.0.1:8000/auth/callback/`, For Production replace the URL as production API Url > Note: `127.0.0.1` is required instead of `localhost` due to OSM restrictions. image -3. Right now read user preferences permission is enough later on fmtm may need permission to modify the map option which should be updated on OSM_SCOPE variable on .env , Keep read_prefs for now +3. Right now read user preferences permission is enough later on fmtm may need permission to modify the map option which should be updated on OSM_SCOPE variable on .env , Keep read_prefs for now. -4. Now Copy your Client ID , Client Secret and put it to `.env` +4. Now Copy your Client ID and Client Secret. Put them in the `OSM_CLIENT_ID` and `OSM_CLIENT_SECRET` of your `.env` file ### 2. Create an `.env` File From 2c75c71f8b89c9de14f48ce14080883b714d41bb Mon Sep 17 00:00:00 2001 From: Roseford Date: Wed, 15 Mar 2023 17:50:17 +0100 Subject: [PATCH 2/2] Added more details to Getting-Started.md --- docs/DEV-1.-Getting-Started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DEV-1.-Getting-Started.md b/docs/DEV-1.-Getting-Started.md index 6adaaff403..3502679712 100644 --- a/docs/DEV-1.-Getting-Started.md +++ b/docs/DEV-1.-Getting-Started.md @@ -81,7 +81,7 @@ These steps are essential to run and test your code! The FMTM uses OAUTH2 with OSM to authenticate users. To properly configure your FMTM project, you will need to create keys for OSM. -1. [Login to OSM](https://www.openstreetmap.org/login). If you do not have an account yet, click the signup button at the top navigation bar to create one. Click the drop down arrow on the extreme right of the navigation bar and select My Settings. +1. [Login to OSM](https://www.openstreetmap.org/login) (_If you do not have an account yet, click the signup button at the top navigation bar to create one_). Click the drop down arrow on the extreme right of the navigation bar and select My Settings. 2. Register your local fmtm backend app to OAuth 2 applications. Put your login redirect url as `http://127.0.0.1:8000/auth/callback/`, For Production replace the URL as production API Url