Omim: Cannot login to OpenStreetMap profile

Created on 13 Jul 2017  Â·  23Comments  Â·  Source: mapsme/omim

i have created openstreetmap account but when i try to login from maps.me app it is showing login error.
i am running this app in android operationg system.

Most helpful comment

This is not fixed for more than a year now. It is convenient and fast to contribute to OpenStreetMap directly via Maps Me, and it improves the overall quality of both app and maps. This issue should have the highest priority.

All 23 comments

The same problem for me, I can login on the same android device via web browser,
but can cont via application.

Google authication also doesn't work.

Works for me after last update.

As I can see the check for logged user is performed using:
https://github.com/mapsme/omim/blob/1a9b2ef125a1d4dbbf5e96d8990becebb9d2234c/editor/osm_auth.cpp#L123

string const url = m_baseUrl + subUrl + "?cookie_test=true";

Maybe this endpoint is changed, because maps.me expects something like: name="authenticity_token" value="TOKEN" in string FindAuthenticityToken(string const & body):
https://github.com/mapsme/omim/blob/1a9b2ef125a1d4dbbf5e96d8990becebb9d2234c/editor/osm_auth.cpp#L31
but currently the result of https://www.openstreetmap.org/login?cookie_test=true is:

  <meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="SOMETOKEN" />

so I think that the code needs to be changed to:

  auto pos = body.find("name=\"csrf-token\"");
  if (pos == string::npos)
    return string();
  string const kValue = "content=\"";
  auto start = body.find(kValue, pos);
  if (start == string::npos)
    return string();
  start += kValue.length();
  auto const end = body.find("\"", start);
  return end == string::npos ? string() : body.substr(start, end - start);

I can confirm that last update fixes this issue.
It seems that the code in github is not the latest that is used for the production. Am I right?

btw great application - keep the good work! :)

Same problem. Cannot autorize with osm login&pass on android phone. mwm 7.4.5-google.
Also, you forgot to remove the Google button when adding objects as unauthorized user.

This is not fixed for more than a year now. It is convenient and fast to contribute to OpenStreetMap directly via Maps Me, and it improves the overall quality of both app and maps. This issue should have the highest priority.

It is really pity that maps.me stopped authenticating using openstreetmaps.org account.

Can anyone connect to OSM? If not, it is better to remove OSM support until the issue is solved.

Good news, it looks like it was resolved 13 days ago in #8991. See the comments in #8974.
Waiting for a 8.3 release.

any release date ?

I have checked this on 8.3.3 data version 180705 and I can log in without any errors. The issue can be closed :)

I'm still having this problem as of 8.3.5-3.

I'm still having this problem as of 8.3.6-2.

Great! I am not the only person who is facing this issue for so long.

--
Nasir Khan Saikat
www.nasirkhn.com

On Sun, 23 Sep 2018 at 22:04, Chung-Yu, Hsu notifications@github.com
wrote:

I'm still having this problem as of 8.3.6-2.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mapsme/omim/issues/6596#issuecomment-423827009, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAYOuyY9QAILNzeS8d-r4DnvrCsAQc8aks5ud7EWgaJpZM4OXFWd
.

@nasirkhan please specify MAPS.ME version and if you log in via OpenStreetMap profile (the app settings -> OpenStreetMap profile) or bookmarks and guides menu?

Maps.me app version is 8.3.6-2-Google

--
Nasir Khan Saikat
www.nasirkhn.com

On Mon, 24 Sep 2018 at 14:53, Alexuser1 notifications@github.com wrote:

@nasirkhan https://github.com/nasirkhan please specify MAPS.ME version
and if you log in via OpenStreetMap profile (the app settings ->
OpenStreetMap profile) or bookmarks and guides menu?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mapsme/omim/issues/6596#issuecomment-423911401, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAYOu17bxifP14dI49EJN7mMLGxKqnYMks5ueJ2FgaJpZM4OXFWd
.

@nasirkhan please send us a screenshot with the app version. (the app settings -> About)

Hello!

I'm using Maps.me version 8.3.6-2-Google with Data version 180804 and I'm facing the same issue as described above. Here is the trace I see in the adb log (I redacted the oauth-related info but can provide it if needed):

10-03 11:24:30.646 W/MapsmeCore(30446): editor/OsmOAuth.cpp:54 Java_com_mapswithme_maps_editor_OsmOAuth_nativeAuthWithPassword()  nativeAuthWithPassword error  FetchRequestTokenServerError /home/vagrant/build/com.github.axet.maps/editor/osm_auth.cpp:250, "HTTP 500 url [https://www.openstreetmap.org/oauth/request_token?oauth_callback=oob&oauth_consumer_key=&oauth_nonce=************&oauth_signature=Hrr%2*********%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1538537069&oauth_version=1.0] response: <!DOCTYPE html>
10-03 11:24:30.646 W/MapsmeCore(30446): <html xmlns="http://www.w3.org/1999/xhtml">
10-03 11:24:30.646 W/MapsmeCore(30446):   <head>
10-03 11:24:30.646 W/MapsmeCore(30446):     <meta charset="utf-8">
10-03 11:24:30.646 W/MapsmeCore(30446):     <title>OpenStreetMap</title>
10-03 11:24:30.646 W/MapsmeCore(30446):     <link rel="stylesheet" media="screen" href="/assets/errors-63b137588d8ef05030514126c94a898a3baac98ca7ea775df39bbc9d62cc7927.css" />
10-03 11:24:30.646 W/MapsmeCore(30446):   </head>
10-03 11:24:30.646 W/MapsmeCore(30446):   <body>
10-03 11:24:30.646 W/MapsmeCore(30446):     <img class="logo" src="/assets/osm_logo-ce691ac3325e0ebe119ff9087858192cc7677e50d7b77655cafc1f208161ad79.png" />
10-03 11:24:30.646 W/MapsmeCore(30446):     <div class="details">
10-03 11:24:30.646 W/MapsmeCore(30446):       <h1>Application error</h1>
10-03 11:24:30.646 W/MapsmeCore(30446): <p>The OpenStreetMap server encountered an unexpected condition that prevented it from fulfilling the request (HTTP 500)</p>
10-03 11:24:30.646 W/MapsmeCore(30446): <p>Feel free to <a href="http://wiki.openstreetmap.org/wiki/Contact" title="Various contact channels explained">contact</a> the OpenStreetMap community if your problem persists. Make a note of the exact URL / post data of your request.</p>
10-03 11:24:30.646 W/MapsmeCore(30446): <p>This may be a problem in our Ruby On Rails code. 500 occurs with exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code)</p>
10-03 11:24:30.646 W/MapsmeCore(30446): 
10-03 11:24:30.646 W/MapsmeCore(30446):     </div>
10-03 11:24:30.646 W/MapsmeCore(30446):   </body>
10-03 11:24:30.646 W/MapsmeCore(30446): </html>
10-03 11:24:30.646 W/MapsmeCore(30446): "

Hi, i am using MAPS.ME version 8.4.5-Google and the bug seems to be fixed in that version.
The login and also adding a place to the map seem to work.

Cannot login with 9.0.7-Google

I can't login with version 9.0.8-2.

V. 9.1.7-Google - not working. :(

V. 12.3.0-Google - still not working. I can login through openstreetmap.org on the browser but can't login from maps.me app. I get a message saying "erro de início de sessão" (br-pt) which isn't a very clear sentence but I'll risk to translate it into English as something like "error while starting session" or perhaps "starting session error".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fegul picture fegul  Â·  8Comments

paride picture paride  Â·  8Comments

dezzeus picture dezzeus  Â·  4Comments

rriemann picture rriemann  Â·  4Comments

rugk picture rugk  Â·  3Comments