OpenGeofiction

JOSM with OAuth

Posted by martinum4 on 10 March 2017 in English (English)

Hey everyone, apparently you can use the OAuth of JOSM now, but it's only available for people who want to get into the JOSM-Settings...

First you got to click all the checkboxes under http://opengeofiction.net/user/REPLACETHISWITHYOURUSERNAME/oauth_clients/new, enter a any url and fill out the name field. You will get to a page where it says "Consumer Key" and "Consumer Secret", you got to copy these values into the correspondending fields in the JOSM-Settings. Authenticate and test, you should be done, it works for me.

Happy OAuthing

Martin

Location: Gründorf, Allerswarte, Markkreis, Regierungsbezirk West-Westannex, Westannex, United Republic of Lapistan and Azurea

Comment from Luciano on 10 March 2017 at 22:38

I tried this several times. I put in the "Consumer Key" and "Consumer Secret" in the JOSM Preferences advanced settings. Then I tried to activate the OAuth option.

Each time, I got an uninformative failure message inside JOSM. It's not clear to me why it's failing.

Hide this comment

Comment from Luciano on 11 March 2017 at 08:50

Any idea what I'm doing wrong? I've documented with screenshots on my bliki:

http://wiki.opengeofiction.net/wiki/index.php/User:Luciano/Bliki/2017/03/11_-_Daily

Hide this comment

Comment from Aces California on 11 March 2017 at 09:34

What actually is OAuth? Can't get it if I don't know what it is :P

Hide this comment

Comment from Luciano on 11 March 2017 at 10:01

@Aces - OAuth is just a different way to authenticate instead of just using a password (which isn't every secure, because JOSM sends passwords as simple text, not encrypted). To the extent that we try to roll out various plug-in or add-ons (such as nominatum, transport map, etc.) for OGF, having a more secure and unified authentication system might be useful.

Hide this comment

Comment from wangi on 11 March 2017 at 14:21

Works for me. Luciano, in JOSM i left it at fully automatic, went to the third tab (advanced oauth properties), unchecked default and then entered the consumer and private keys.

Hide this comment

Comment from skquinn on 11 March 2017 at 15:24

I can't get it to work reliably. I can request a token and then immediately it's rejected as invalid when I test it.

Hide this comment

Comment from martinum4 on 11 March 2017 at 21:21

@Luciano These Tokens generated before are NOT the access tokens, you got to insert them in the Advanced settings.

Hide this comment

Comment from Luciano on 11 March 2017 at 21:25

Well, I tried following wangi's suggestion, and it still gave an "invalid" when I tested it (same as result reported by skquinn). Yet despite this, it worked for downloading and uploading data. It's kind of weird, and it's not clear that it's reliable - certainly the messaging between the JOSM app and the server doesn't seem consistent. Nevertheless, it seems to work.

Hide this comment

Comment from Thanik on 12 September 2018 at 22:32

I'm sorry to nudge this discussion a year later, but I'm having the same issue described above - where I can download data, but can't upload it to the server despite having created a custom consumer key and secret. Some help on the matter would be greatly appreciated.

I'll try going back to the default "automatic" option in the meantime.

Hide this comment

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

    [Text](URL)
  • Image

    ![Alt text](URL)

Login to leave a comment