Modify

Opened 11 years ago

Last modified 5 weeks ago

#2710 new enhancement

[WIP Patch] The preferences should have multiple server profiles

Reported by: avarab@… Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc: joshdoe, malenki, Zibik, francois.lacombe, vinber

Description (last modified by Don-vip)

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)

initial_multiuser_rework.patch (23.3 KB) - added by taylor.smock 12 months ago.
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.
initial_multiuser_rework_v2.patch (47.9 KB) - added by taylor.smock 12 months ago.
Starts refactoring the preferences panel in order to allow adding multiple users (preferences panel is currently broken).
initial_multiuser_rework_v3.patch (56.1 KB) - added by taylor.smock 12 months ago.
Partially working preferences panel -- still needs a lot of work

Download all attachments as: .zip

Change History (21)

comment:1 Changed 9 years ago by joshdoe

Cc: joshdoe added

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.

comment:2 Changed 8 years ago by Don-vip

Ticket #8048 has been marked as a duplicate of this ticket.

comment:3 Changed 6 years ago by Don-vip

Ticket #9672 has been marked as a duplicate of this ticket.

comment:4 Changed 6 years ago by Don-vip

Cc: malenki added
Description: modified (diff)

comment:5 Changed 6 years ago by Don-vip

Ticket #9677 has been marked as a duplicate of this ticket.

comment:6 Changed 6 years ago by Don-vip

Cc: Zibik added

comment:7 Changed 6 years ago by Don-vip

Ticket #9918 has been marked as a duplicate of this ticket.

comment:8 Changed 6 years ago by bastiK

Cc: francois.lacombe 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 Changed 6 years ago by francois.lacombe

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:10 Changed 4 years ago by Don-vip

Ticket #12585 has been marked as a duplicate of this ticket.

comment:11 Changed 4 years ago by Stalfur

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:12 Changed 4 years ago by Don-vip

Ticket #5490 has been marked as a duplicate of this ticket.

comment:13 Changed 2 years ago by Zverikk

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 Changed 2 years ago by Gppes

Hello Josm team, thanks for your great software!

I also would be interested in this feature!

comment:15 Changed 22 months ago by rivermont

Also looking forward to this feature as separate accounts are required by https://wiki.openstreetmap.org/wiki/Import/Guidelines#Use_a_dedicated_user_account

Changed 12 months ago by taylor.smock

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.

Changed 12 months ago by taylor.smock

Starts refactoring the preferences panel in order to allow adding multiple users (preferences panel is currently broken).

comment:16 Changed 12 months ago by taylor.smock

Summary: The preferences should have multiple server profiles[WIP Patch] The preferences should have multiple server profiles

Changed 12 months ago by taylor.smock

Partially working preferences panel -- still needs a lot of work

comment:17 Changed 5 weeks ago by simon04

Ticket #18811 has been marked as a duplicate of this ticket.

comment:18 Changed 5 weeks ago by simon04

Cc: vinber added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to avarab@gmail.com
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.