Changes between Version 1 and Version 55 of Help/Preferences/Connection


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Help/Preferences/Connection

    v1 v55  
    1 = Connection settings =
     1[[TranslatedPages(outdated=Page needs rework and better structure. Some screenshots are outdated.)]]
    22
    3 You can set the URL for requests to the OpenStreetMap server.  It is very unlikely you will need to change this.
     3= Preferences > OSM Server =
     4[[PageOutline(2-4,Table of content)]]
    45
    5 Before you upload any changes to the OpenStreetMap server you need to [http://www.openstreetmap.org/create-account.html create] an account.  Your chosen username and password need to be entered on the connection settings page.
     6[[JOSMImage(preferences/connection,48,link=,middle,margin-right=20)]]
     7
     8Connection Settings for the OSM server
     9
     10== Downloading and uploading to the default server ==#ApiUrl
     11[[Image(use-default-api-url.png,link=)]]
     12
     13Most JOSM users want to exchange geo data with the standard OSM server operated by the OSM community.
     14
     15Tick the respective checkbox in order to download from and upload to the standard server (see screenshot above). This is the default setting.
     16
     17== Advanced option: Downloading and uploading to a custom server ==
     18Some JOSM users need to configure the API URL of an OSM server because they are working with a custom server:
     19* Some users are working with local installations of the OSM server
     20* Some users are working with development and test instances of the OSM server (for instance with [https://api06.dev.openstreetmap.org]).
     21
     22[[Image(use-custom-api-url.png,link=)]]
     23
     24In order to use a custom URL:
     251. Remove the tick in the checkbox for the standard API URL (see screenshot above)
     261. Enter the API URL
     27 
     28Click on **Validate** to test whether an OSM API server is available at the given URL. If so, JOSM will display the icon [[JOSMImage(misc/green_check)]] to the right of the input field for the API URL. If the URL isn't valid, JOSM will display the icon [[JOSMImage(warning-small)]].
    629
    730
    8 Back to [wiki:Help Main Help]
     31== Authentication ==#Authentication
     32=== Working anonymously or with an OSM account ===
     33You don't need to identify and authenticate yourself provided that you neither upload data to the OSM server nor download data for which you must authenticate first.
     34
     35If you work **anonymously** you are allowed
     36* to download geo-data from the OSM server and save it to a local file
     37* to download public GPS traces from the OSM server
     38* to load geo data from a file, edit it, and save it back to a file
     39
     40However, you can't
     41* upload geo-data to the OSM server. You can't created, update, or close changesets either.
     42* download your private GPS traces
     43
     44You are recommended to [osmwww:user/new?referer=%2F create an OSM user account]. By using [osmwww:user/new?referer=%2F this form] you can choose an **OSM username** and an **OSM password** both of which you will use below.
     45
     46=== Basic authentication ===
     47Basic authentication is the basic mechanism to authenticate yourself at the OSM server.
     48
     49Here's a screenshot of the preferences panel for basic authentication:
     50
     51[[Image(basic-authentication.2.png,link=)]]
     52
     53To use Basic Authentication
     54
     551. Go to the register **OSM Server** in Preferences
     561. Select the authentication method **Basic authentication**
     571. Enter your OSM username and your OSM password
     58
     59=== OAuth 2.0 based authentication ===#oauth2
     60[https://oauth.net/2 OAuth 2.0] 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 2.0 in addition to basic authentication.
     61
     62OAuth has two major advantages over basic authentication:
     631. Your OSM password doesn't have to be saved in clear text in the JOSM preferences file.
     641. 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.
     65
     66OAuth 2.0 uses [wikitr:RemoteControl Remote Control] to receive the token from the OAuth server. If Remote Control is disabled in preferences (default setting) it is temporally enabled to receive the token and then disabled again.
     67**Note**: If you have issues authenticating, you can disable remote control in other running instances of JOSM and disable ''then'' re-enable it in the JOSM instance you are trying to authenticate.
     68
     69Once initialized the access token is represented with the following options:
     70
     71[[Image(oauth-2-authentication.png,500,link=)]]
     72
     73* 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.
     74* 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.
     75* Click on **Remove token** to remove the current token. The `Authorise now` button will reappear.
     76* Selecting the checkbox "Display Advanced OAuth Parameters" to get the [wikitr:/Help/Dialog/OAuthAuthorisationWizard#AdvancedOAuthparameters advanced OAuth parameters] displayed.
     77
     78
     79== New OSM account messages and max age of closed OSM Notes ==
     80=== New OSM account messages ===
     81JOSM, by default, periodically checks for unread OSM account messages. Unchecking ''**Periodically check for new messages**'' will disable the check (''advanced preference'': `message.notifier.enabled`). Below the checkbox the interval in minutes can be set (''advanced preference'': `message.notifier.interval`). The default value is `5` minutes.
     82
     83=== Max age of closed OSM Notes ===#OSMNotes
     84The maximum age in days of closed [wikitr:/Help/Dialog/Notes OSM Notes] can be set (''advanced preference'': `osm.notes.daysClosed`). The default value is `7` days. See [wikitr:/Help/Dialog/Notes#AdvancedPreferences Advanced preferences for notes] for details.
     85
     86
     87== Overpass server ==#OverpassServer
     88''**([wikitr:/Help/ExpertMode Expert mode] only)**'' \\
     89Configure the Overpass API instance used for downloading OSM data (for instance in [wikitr:/Help/Action/Download#DownloadfromOverpassAPI Download from Overpass API]) (''advanced preference'': `download.overpass.server`). See [osmwiki:Overpass_API#Public_Overpass_API_instances for a list of servers]. \\
     90With a checked ''**Use Overpass server for object downloads**'' the overpass server is used for all actions which request to download specified objects like [wikitr:/Help/Action/DownloadObject Download Object], [wikitr:/Help/Action/DownloadParentWaysAndRelation Download parent ways/relations …] or downloading (incomplete) members of relations (''advanced preference'': `download.overpass.for-multi-fetch`).
     91
     92----
     93Back to [wikitr:/Help/Action/Preferences Preferences] \\
     94Back to [wikitr:/Help/Menu/Edit Edit Menu] \\
     95Back to [wikitr:/Help/Menu Main Menu] \\
     96Back to [wikitr:/Help Main Help]