Skip to content

deevroman/get_osm_token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get OSM OAuth Token

Firefox add-ons

Description

Firefox-extension to get OpenStreetMap's OAuth token in a couple of clicks

The expansion has two goals:

  1. To prefill the fields when registering an OAuth application. All you have to do is to specify its name
  2. Add a button to get OAuth token to the application page.

How to use

  1. Install the extension
  2. Click the Create OSM OAuth2 app button in the extension menu
  3. Give it a name and the necessary permissions
  4. After registering, click Get OAuth token.
  5. 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

Demo

p.s. Chromium? Manifest v3 is terrible. I don't want to waste my time on it.

Русское описание

Firefox-расширение для получения OAuth-токена OpenStreetMap в пару кликов.

Как использовать

  1. Установите расширение
  2. Нажмите кнопку Create OSM OAuth2 app.
  3. Дайте ему имя и нужные права
  4. После регистрации нажмите Get OAuth token.
  5. Скопируйте и вставьте его в ваше приложение!

Например, попробуйте выполнить в вашем терминале:

curl -H "Authorization: Bearer <TOKEN>" https://master.apis.dev.openstreetmap.org/api/0.6/user/details.json

p.s. А для хрома? Manifest v3 ужасен, не хочу тратить время на чью-то перестановку кроватей