upload-scripts icon indicating copy to clipboard operation
upload-scripts copied to clipboard

Switch to OAuth 2

Open danieldegroot2 opened this issue 1 year ago • 2 comments

Switch to OAuth 2 from HTTP Basic Auth and OAuth 1.0a. They are being deprecated. See https://github.com/openstreetmap/operations/issues/867

cc: @GRABOSM

danieldegroot2 avatar Nov 01 '23 15:11 danieldegroot2

OAuth has now been depreciated meaning it is no longer possible to use these scripts to contribute to Kartaview.

This needs urgent attention.

trigpoint avatar Mar 10 '24 21:03 trigpoint

Hello @danieldegroot2 and @trigpoint ,

Thank you for addressing the issue. Our Engineering Team is looking into it, we will post updates here.

mapdevsaikat avatar Mar 11 '24 08:03 mapdevsaikat

Hello! Just wondering if there's any progress on this as I'm unable to upload anything at present. Many thanks in advance. Looking forward to being able to use this tool to contribute more extensively to Kartaview in the near future. Or at least I assume that's the reason it won't upload despite me authorising Kartaview to access my OSM account?

C:\Users\daveb\Desktop\upload-scripts-master\upload-scripts-master>python osc_tools.py upload -p "C:\Users\daveb\Desktop\testupload"
Searching for sequences...
    Found sequence at path C:\Users\daveb\Desktop\testupload. Sequence type Exif-Photo.
Search completed.


Starting to upload 1 sequences...

For login go to this URL in your browser:
https://www.openstreetmap.org/oauth/authorize?oauth_token=qP5Ugf6UTc49lDxt2AGWxoVj3nqcORWsmQFuLYge
Login and grant access then press ENTER

An error occurred.
This error can occur when you did not log in your browser. Please make sure to follow the next steps to retry.

For login go to this URL in your browser:
https://www.openstreetmap.org/oauth/authorize?oauth_token=ivUKEaLdpQWnUjPYEdGPvIqX88BDb0nWgOJ1OeQ6
Login and grant access then press ENTER

Error message: Token request failed with code 401, response was ''.
Please report this issue with the error messagehttps://github.com/openstreetcam/upload-scripts

C:\Users\daveb\Desktop\upload-scripts-master\upload-scripts-master>

davebulow avatar Jun 20 '24 23:06 davebulow

fixed by

salabogdan avatar Jun 28 '24 17:06 salabogdan

@salabogdan Thank you so much! I just tested it and can confirm this now works. (Command line on Windows 11 in my case). Really appreciate you doing this!

davebulow avatar Jun 28 '24 23:06 davebulow

Hello @danieldegroot2 and @trigpoint,

The OAuth issue is fixed now, please feel free to give it a try. Thank you @salabogdan!

GRABOSM avatar Jul 01 '24 05:07 GRABOSM

@GRABOSM Indeed, I've been testing it and the upload function is working very well! Thank you! (Hopefully the new issue where no uploads are processing will be fixed soon too. Then it'll be even better 😄. Who can I contact about it? No Kartaview uploads have been processed for the last 7 days) I've tried emailing Gab/Kartaview but heard nothing. I can't post about it here because it's unrelated to the upload scripts.

davebulow avatar Jul 01 '24 16:07 davebulow

No Kartaview uploads have been processed for the last 7 days)

Hi @davebulow, The issue has been resolved now, please check your previous sequence. Please try to upload new tracks to check, and let us know if you face any latency. Happy contributing and Mapping!

GRABOSM avatar Jul 12 '24 11:07 GRABOSM