Changes between Initial Version and Version 1 of Uk:Help/Preferences/Connection


Ignore:
Timestamp:
2011-10-13T16:54:31+02:00 (14 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Uk:Help/Preferences/Connection

    v1 v1  
     1[[TranslatedPages]]
     2= Налаштування > Параметри з’єднання =
     3
     4[[TOC(inline)]]
     5
     6== The URL to the OSM server == #ApiUrl
     7
     8=== Downloading and uploading to the default server ===
     9
     10[[Image(Help/Preferences/Connection:use-default-api-url.png)]]
     11
     12Most JOSM users want to exchange geo data with the standard OSM server operated by the OSM community.
     13
     14Tick the respective checkbox in order to download from and upload to the standard server (see screenshot above). This is the default setting.
     15
     16=== Advanced option: Downloading and uploading to a custom server ===
     17Some JOSM users need to configure the API URL of an OSM server because they are working with a custom server:
     18  * Some users are working with local installations of the OSM server
     19  * Some users are working with development and test instances of the OSM server (for instance with [http://api06.dev.openstreetmap.org]).
     20
     21[[Image(Help/Preferences/Connection:use-custom-api-url.png)]]
     22
     23In order to use a custom URL:
     24  1. Remove the tick in the checkbox for the standard API URL (see screenshot above)
     25  2. Enter the API URL
     26 
     27Click on '''Validate''' to test whether an OSM API server is available at the given URL. If so, JOSM will display the icon [[Image(source:/trunk/images/dialogs/changeset/valid.png)]] to the right of the input field for the API URL. If the URL isn't valid, JOSM will display the icon  [[Image(source:/trunk/images/warning-small.png)]].
     28
     29
     30== Authentication Settings ==#AuthenticationSettings
     31
     32=== Working anonymously or with an OSM account ===
     33
     34You 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.
     35
     36If you work '''anonymously''' you are allowed
     37  * to download geo-data from the OSM server and save it to a local file
     38  * to download public GPS traces from the OSM server
     39  * to load geo data from a file, edit it, and save it back to a file
     40
     41However, you can't
     42  * upload geo-data to the OSM server. You can't created, update, or close changesets either.
     43  * download your private GPS traces
     44
     45You are recommended to [http://www.openstreetmap.org/user/new?referer=%2F create an OSM user account]. By using [http://www.openstreetmap.org/user/new?referer=%2F this form] you can choose an '''OSM username''' and an '''OSM password''' both of which you will use below.
     46
     47=== Basic authentication ===
     48{{{
     49#!html
     50<p style="background-color:rgb(253,255,221);padding: 10pt; border-color:rgb(128,128,128);border-style: solid; border-width: 1px;">
     51<strong>Warning!</strong><br/>
     52Basic authentication methode is quite unsecure. Please consider to use OAuth.
     53The password is stored in plain text in the JOSM preferences file.
     54Furthermore, it is transferred <strong>unencrypted</strong> in every request sent to the OSM server.
     55<strong>Do not use a valuable password.</strong>
     56</p>
     57}}}
     58
     59Basic authentication is the basic mechanism to authenticate yourself at the OSM server.
     60
     61Here's a screenshot of the preferences panel for basic authentication:
     62
     63[[Image(Help/Preferences/Connection:basic-authentication.png)]]
     64
     65To use Basic Authentication
     66
     67  1. Go to the tab '''Authentication''' in the Connection Preferences
     68  2. Select the authentication method '''Basic authentication'''
     69  3. Enter your OSM username and your OSM password
     70
     71=== OAuth based authentication ===
     72[http://oauth.net/ OAuth] 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.
     73
     74OAuth has two major advantages over basic authentication:
     75  1. Your OSM password doesn't have to be saved in clear text in the JOSM preferences file.
     76  2. 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.
     77
     78For advanced users, OAuth has additional advantages:
     79  * With OAuth you can generate restricted Access Tokens which you given somebody else such that another mapper can act on your behalf. For instance, a mapper could generate an Access Token which grants somebody else the right to download its private GPS traces. Even if he gives this Access Token to somebody else, his OSM password is kept private. In addition, he can revoke the special Access Token at any time. JOSM supports this kind of advanced configuration in the [wiki:/Help/Dialog/OAuthAuthorisationWizard OAuth Authorisation Wizard] with the authorisation procedure '''Manual authorization'''.
     80
     81To use OAuth based Authentication
     82
     83  1. In the Connection Preferences go to the tab '''Authentication'''
     84  2. Select the authentication method '''OAuth based authentication'''
     85  3. Click on '''Authorise now''' to launch the [wiki:/Help/Dialog/OAuthAuthorisationWizard OAuth Authorisation Wizard] (see screenshot below)
     86
     87[[Image(Help/Preferences/Connection:oauth-preferences-step-1.png)]]
     88
     89This will launch the [wiki:/Help/Dialog/OAuthAuthorisationWizard OAuth Authorisation Wizard]. Use one of the available authorization procedures in this dialog to get a valid '''Access Token'''.
     90
     91JOSM displays the retrieved Access Token in the preferences panel (see screenshot below):
     92
     93[[Image(Help/Preferences/Connection:oauth-preferences-step-2.png)]]
     94
     95Deselect 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.
     96
     97Click on '''Test Access Token''' to submit a test request with the token to the OSM server. JOSM will analyse whether this token is authorized to access the OSM server.
     98
     99Click on '''New Access Token''' to generate a new Access Token.
     100
     101==== Advanced OAuth parameters ====
     102Select the checkbox '''Display Advanced OAuth parameters''' to display the important OAuth parameters
     103  * the [http://oauth.net/core/1.0/#anchor3 Consumer Key] and the [http://oauth.net/core/1.0/#anchor3 Consumer Secret] identifying JOSM as OAuth consumer
     104  * the Request Token URL where JOSM can retrieve [http://oauth.net/core/1.0/#anchor3 Request Tokens]
     105  * the Access Token URL where JOSM can retrieve [http://oauth.net/core/1.0/#anchor3 Access Tokens]
     106  * the Authorise URL where JOSM users are redirected to to authorise a Request Token
     107
     108[[Image(Help/Preferences/Connection:oauth-advanced.png)]]
     109
     110== Proxy Settings == #ProxySettings
     111JOSM communicates with the OSM server using the Hypertext Transfer Protocol ([http://en.wikipedia.org/wiki/Http HTTP]). If required it can relay its requests through a [http://en.wikipedia.org/wiki/Http_proxy HTTP proxy] or a [http://en.wikipedia.org/wiki/SOCKS SOCKS proxy].
     112
     113  1. Go to the tab '''Proxy settings''' in the Connection Preferences
     114  2. Select one of the available options and enter additional configuration parameters
     115  3. Save the preferences
     116
     117[[Image(Help/Preferences/Connection:proxy-settings.png)]]
     118
     119
     120=== Using the standard system proxy ===
     121If you always want to use the proxy defined as standard proxy on your computer you have to start up JOSM with a special command. The command line has to include the parameter {{{-Djava.net.useSystemProxies=true}}}, for instance
     122
     123  {{{java -Djava.net.useSystemProxies=true -jar josm.jar}}}
     124
     125=== Using the manually configured proxy ===
     126If there is a need for personal authentication for your proxy, remember to include the NT-domain with your username, e.g. ''domain\username''. This issue is due to proxy implementation in java.net.HttpURLConnection.
     127
     128----
     129Back to [wiki:/Help/Action/Preferences Preferences][[Br]]
     130Back to [wiki:Help Main Help]