Opened 15 years ago
Last modified 16 months ago
#2710 new enhancement
[WIP Patch] The preferences should have multiple server profiles
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | authorization OAuth | Cc: | joshdoe, malenki, Zibik, francois.lacombe, vinber, 1ec5 |
Description (last modified by )
If I want to switch from api.openstreetmap.org/api to some test server while hacking OSM I have to erase my current API host/user/password and put in new values, then repeat this process when I switch back.
The preferences should have a drop-down list of OSM servers and associated users/password that I could switch between. This would help both with switching servers and switching users on the same server.
Attachments (3)
Change History (29)
comment:1 by , 14 years ago
Cc: | added |
---|
comment:4 by , 11 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
comment:6 by , 11 years ago
Cc: | added |
---|
comment:8 by , 11 years ago
Cc: | added |
---|
Note, that you run JOSM with multiple different preference directories:
$ java -Djosm.home=/path/to/pref/dir -jar josm-tested.jar
The disadvantage is of course that all the other settings, like plugins, are also separate for each "profile".
comment:9 by , 10 years ago
I've tried to copy my main JOSM instance and duplicate my settings on it (it's not a problem, my OSM and private usage don't need the same plug-ins or even the same projection).
I've got a standalone josm-tested.jar in C:\Program Files\JOSM_2 and launch it with "C:\Program Files\Java\jre7\bin\javaw.exe" -Djosm.home="C:\Program Files\JOSM_2\josm" -jar "C:\Program Files\JOSM_2\josm-tested.jar"
It seems standalone Java apps (instead of jnlp) can't accept self-signed HTTPS certificates and I do have services which are using such protocol.
The only stuff I get is a Java security Exception while loading presets and styles over HTTPS at startup.
I must have forgotten an hidden option somewhere but I'm not very surprised.
comment:11 by , 9 years ago
No wonder I couldn't find this issue, 7 years old now and last touched 21 months ago! My bad for the duplicate 12585 though
comment:13 by , 7 years ago
Seconding this. It was a minor inconvenience before (different accounts on different servers), but since I started doing imports, this has become a major issue. It'd be great to store oauth settings for multiple accounts, or have a history of oauth tokens, with an option to delete some.
comment:14 by , 7 years ago
Hello Josm team, thanks for your great software!
I also would be interested in this feature!
comment:15 by , 6 years ago
Also looking forward to this feature as separate accounts are required by https://wiki.openstreetmap.org/wiki/Import/Guidelines#Use_a_dedicated_user_account
by , 6 years ago
Attachment: | initial_multiuser_rework.patch added |
---|
Initial patch to support multiple users. This is mostly adding new methods to support passing different auth tokens around. The upload panel has a dropdown box that currently doesn't do anything except show the logged in user's name, which is the reason for adding support for passing different auth tokens. TODO actually use input from the dropdown box and create a method to add additional user accounts.
by , 6 years ago
Attachment: | initial_multiuser_rework_v2.patch added |
---|
Starts refactoring the preferences panel in order to allow adding multiple users (preferences panel is currently broken).
comment:16 by , 6 years ago
Summary: | The preferences should have multiple server profiles → [WIP Patch] The preferences should have multiple server profiles |
---|
by , 6 years ago
Attachment: | initial_multiuser_rework_v3.patch added |
---|
Partially working preferences panel -- still needs a lot of work
comment:18 by , 5 years ago
Cc: | added |
---|
comment:19 by , 4 years ago
For imports this would be great. I hope this will be implemented at some point.
comment:20 by , 3 years ago
Hi !
Same here. I'll have often to switch between the community account OSM_BFC, where every mass edit is community-driven, to my personal account.
There will be one day where I won't be awake enough, won't change settings and will push changes on the wrong account...
Thanks by advance !
comment:21 by , 3 years ago
Ultra-strong support. This will make it easier to work with multiple OSM-based projects like OpenGeoFiction, local maps, et al.
comment:23 by , 3 years ago
+1 would love this, since I wanted to do some plugin debugging and needed a second account for master.apis.dev.openstreetmap.org
Even with all the documentation it was not straightforward to get it running. I hope that including multiple accounts in one JOSM setup would make this easier.
comment:24 by , 2 years ago
Cc: | added |
---|
comment:25 by , 21 months ago
Keywords: | authorization OAuth added |
---|
comment:26 by , 16 months ago
I described the workaround I use in https://www.openstreetmap.org/user/M!dgard/diary/401874.
It's a script that modifies preferences.xml and then launches JOSM.
I believe this same issue affects users who access WMS servers which require authentication. I'm using such a server, and I have to constantly reenter usernames and passwords between downloading images from WMS and uploading changesets to OSM. I would say this is closer to a bug than an enhancement. I'm not familiar with the code for this, but couldn't we just have per host user/pass? This wouldn't solve the problem for users who might try and access different paths on the same host that use different credentials, however I imagine this isn't very common.