From 19eea334ab5f701515c3689bd9569910394383ef Mon Sep 17 00:00:00 2001 From: Vitor George Date: Fri, 16 Dec 2022 15:41:48 +0000 Subject: [PATCH] Fix auth instructions --- README.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 418529cc..60ed314a 100644 --- a/README.md +++ b/README.md @@ -7,21 +7,19 @@ Install requirements: - [nvm](https://github.com/creationix/nvm) - [Docker](https://www.docker.com) -Visit your [OpenStreetMap settings](https://www.openstreetmap.org/account/edit) page and [register an OAuth2 app](https://www.openstreetmap.org/oauth2/applications) with the following settings: - -- Name: `OSM Teams Dev` (or another name of your preference) -- Redirect URIs: `http://127.0.0.1:3000/api/auth/callback/openstreetmap` -- Confidential application: `false` -- Permissions: `Read user preferences` only - -Example: - -![OSM Client App](oauth2-osm-client-app.png "OAuth 2 page at OSM Website") - -Create an `.env.local` file and add environment variables `OSM_CONSUMER_KEY` and `OSM_CONSUMER_SECRET` obtained at OAuth2 page at OpenStreetMap website. The `.env.local` file should be like the following: - - OSM_CONSUMER_KEY= - OSM_CONSUMER_SECRET= +Setup local authentication: + +- Visit [auth.mapping.team](https://auth.mapping.team) and sign in +- Go to clients page at +- Create a new app with the following settings: + - Name: `OSM Teams Dev` (or another name of your preference) + - Redirect URIs: `http://127.0.0.1:3000/api/auth/callback/osm-teams` +- Copy client id and secret to a newly created file named `.env.local` in the repository root, following this example: + +```sh + OSM_CONSUMER_KEY= + OSM_CONSUMER_SECRET= +``` Start development and test databases with Docker: