Skip to content

A fork of OSM Teams focused only on the authentication server

License

Notifications You must be signed in to change notification settings

developmentseed/osm-teams-auth-v1

Repository files navigation

osm-teams 🤝

Check the beta 👉 https://mapping.team

Development

Install requirements:

Visit your OpenStreetMap settings page and register an OAuth1 Client App:

OSM Client App

Create an .env file by copying .env.sample and replacing the values as needed. OSM_CONSUMER_KEY and OSM_CONSUMER_SECRET are values available at the OAuth app page on openstreetmap.org. The .env file should contain:

```bash
OSM_CONSUMER_KEY=<osm-teams-app>
OSM_CONSUMER_SECRET=<osm-teams-app-secret>
DSN=postgres://postgres@dev-db/osm-teams?sslmode=disable
```

Start Hydra and PostgreSQL with Docker:

docker-compose -f compose.dev.yml up --build

On a separate terminal, create the first-party "manage" app:

docker-compose exec hydra hydra clients create --endpoint http://localhost:4445 \
  --id manage \
  --secret manage-secret \
  --response-types code,id_token \
  --grant-types refresh_token,authorization_code \
  --scope openid,offline,clients \
  --callbacks http://localhost:8989/login/accept

Install Node.js the required version (see .nvmrc file):

nvm i

Install Node.js modules:

yarn

Migrate dev-db database:

yarn migrate

Start development server:

yarn dev

✨ You can now login to the app at http://localhost:8989

Acknowledgments

About

A fork of OSM Teams focused only on the authentication server

Resources

License

Stars

Watchers

Forks

Releases

No releases published