Skip to content

Commit

Permalink
Upgrade documentation for oauth 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Feb 5, 2024
1 parent 7f700e6 commit f0aba75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Examples of how to backup and restore the database:
psql exports < export_tool_2023-03-06.pgdump
```

8. Modify the OAuth1 application with your hostname's `redirect_uris`
8. Modify the OAuth2 application with your hostname's `redirect_uris`

### Storage and Environment Variables

Expand Down
6 changes: 3 additions & 3 deletions ops/systemd/export_workers.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ EMAIL_HOST_USER=<INSECURE_SMTP_USERNAME>
EMAIL_HOST_PASSWORD=<SECURE_SMTP_PASSWORD>
REPLY_TO_EMAIL=<INSECURE_REPLY_EMAIL>

##OAUTH 1 Settings
OSM_API_KEY=<SECURE_OSM_OAUTH1_APP_CONSUMER_KEY>
OSM_API_SECRET=<SECURE_OSM_OAUTH1_APP_CONSUMER_SECRET>
##OAUTH 2 Settings
OSM_API_KEY=<SECURE_OSM_OAUTH2_APP_CONSUMER_KEY>
OSM_API_SECRET=<SECURE_OSM_OAUTH2_APP_CONSUMER_SECRET>

## Workers
WORKER_SECRET_KEY=<SECURE_WORKER_KEY>
Expand Down
2 changes: 1 addition & 1 deletion ui/app/components/help/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default () =>
<p>User authentication and authorization is a two-step process.</p>
<p>
The Export Tool requires that users log into OpenStreetMap using{" "}
<a href="https://oauth.net/1/">OAuth 1.0a</a> (you don't need to know
<a href="https://oauth.net/2/">OAuth 2.0a</a> (you don't need to know
this). This provides user identity, specifically an OSM username to
associate with exports. You generally don't need to care about this,
except to know that usernames are the same as on OSM.
Expand Down

0 comments on commit f0aba75

Please sign in to comment.