damn_server.api.redirect_to_openstreetmap_for_authorization¶
- async damn_server.api.redirect_to_openstreetmap_for_authorization(token_identifier)¶
Authorization starts here.
- Parameters:
token_identifier (ConstrainedStrValue) – Specify your temporary token identifier.
Authorization steps are the following:
Create your temporary token_identifier. Initiate the authorization process by the
GET
request to/auth/{token_identifier}
endpoint.You are redirected to OpenStreetMap OAuth1 server. Fill the username and password in the OpenStreetMap login form.
When OK, you are redirected to
/authed/{token_identifier}
endpoint,user/details
from OpenStreetMap are retrieved, and the JSON Web Token (JWT) is created based onuser/details
. You getGood.
message.Now the JWT is ready and you can retrieve it by
GET
request to/token/{token_identifier}
endpoint.