59 | | === OAuth 1.0a based authentication === |
60 | | **OAuth 1.0a is deprecated and was removed. Please use OAuth 2.0 or later instead! ** |
61 | | |
62 | | [https://oauth.net/1 OAuth 1.0a] is an open protocol to allow secure API authorization in a simple and standard method from desktop and web applications. The OSM server supports OAuth in addition to basic authentication. |
63 | | |
64 | | OAuth has two major advantages over basic authentication: |
65 | | 1. Your OSM password doesn't have to be saved in clear text in the JOSM preferences file. |
66 | | 1. Your OSM password has to be transferred encrypted **only once** over the Internet, in contrast to basic authentication where your OSM password is transferred unencrypted as part of every request sent from JOSM to the OSM server. |
67 | | |
68 | | Information about the use of OAuth is [wikitr:/Help/Dialog/OAuthAuthorisationWizard here] |
69 | | |
70 | | Once initialized the access token is represented with the following options: |
71 | | |
72 | | [[Image(oauth-authentication.png,500,link=)]] |
73 | | |
74 | | * Deselect the checkbox **Save to preferences** if you don't want to save the Access Token in the JOSM preferences. If you don't save it the Access Token will be lost when you close JOSM. If you later startup JOSM again you will have to retrieve a new Access Token to work with OAuth based authentication again. |
75 | | * Click on **Test Access Token** to submit a test request with the token to the OSM server. JOSM will analyze whether this token is authorized to access the OSM server. |
76 | | * Click on **New Access Token** to generate a new Access Token. |
77 | | * Selecting the checkbox "Display advanced OAuth parameters" to get the [wikitr:/Help/Dialog/OAuthAuthorisationWizard#AdvancedOAuthparameters advanced OAuth parameters] displayed. |
78 | | |