Firefox-extension to get OpenStreetMap's OAuth token in a couple of clicks
The expansion has two goals:
- To prefill the fields when registering an OAuth application. All you have to do is to specify its name
- Add a button to get OAuth token to the application page.
- Install the extension
- Click the Create OSM OAuth2 app button in the extension menu
- Give it a name and the necessary permissions
- After registering, click Get OAuth token.
- Copy and paste it into your application!
For example, use this command in your terminal:
curl -H "Authorization: Bearer <TOKEN>" https://master.apis.dev.openstreetmap.org/api/0.6/user/details.json
p.s. Chromium? Manifest v3 is terrible. I don't want to waste my time on it.
Firefox-расширение для получения OAuth-токена OpenStreetMap в пару кликов.
- Установите расширение
- Нажмите кнопку Create OSM OAuth2 app.
- Дайте ему имя и нужные права
- После регистрации нажмите Get OAuth token.
- Скопируйте и вставьте его в ваше приложение!
Например, попробуйте выполнить в вашем терминале:
curl -H "Authorization: Bearer <TOKEN>" https://master.apis.dev.openstreetmap.org/api/0.6/user/details.json
p.s. А для хрома? Manifest v3 ужасен, не хочу тратить время на чью-то перестановку кроватей