-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorize OSM access not working #413
Comments
Downgrading is not implemented, any downgrades that involve a different DB scheme will not work. To downgrade, you'd need to clear the data.
The middle of the ocean bug is known, that's the current LOST (third party library).
Can you be more specific when exactly the auth fails and ideally what is logged on console?
What browser do you use? Did you try another browser?
Do you use something other than the normal name+pw? (I.e. Google etc)
Yes, v0 uses a WebView inside the app, v1 uses the external browser as it is recommended in the OAuth protocol and necessary when using Google login.
Am 24. Juli 2017 07:53:05 MESZ schrieb Pander <[email protected]>:
…Authorize OSM access is not working in version 1.0 on LineageOS with
GAPPS pico and F-Droid. I can choose to authorize via OsmAnd~, which
doesn't work at all and results in a place in the middle of the ocean.
Other way of authorization is via Firefox. That results in an error
`Unable to reach the authorization server`. However, when I open
Firefox manually, I see a tab opened for authorization. Logging in has
no further effect on the app where I remain `Not yet authorized`.
Trying to downgrade to 0.13, to test that, resulted in an unknown
error. De-installing 1.0 and installing 0.13 worked. There
authorization works properly as it seems to be a different
implementation.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#413
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
|
Also see #386 |
Most probably the same issues as I see in the screen recording. Note that GAPPS pico is lacking the Android System WebView app, but installing that doesn't make a difference. |
You need to elaborate in the things I asked you because that issue was fixed.
Am 24. Juli 2017 17:35:53 MESZ schrieb Pander <[email protected]>:
…Most probably the same issues as I see in the screen recording. Note
that GAPPS pico is lacking the Android System WebView app, but
installing that doesn't make a difference.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#413 (comment)
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
|
"Can you be more specific when exactly the auth fails and ideally what is logged on console?" -> Which console? "What browser do you use?" -> Firefox, latest stable from Google Play. "Did you try another browser?" -> I installed Android System WebView app but didn't matters "Do you use something other than the normal name+pw? (I.e. Google etc)" -> username + passwor, worked before with 0.13 does this answer your questions? |
Almost. I need to know when exactly the message comes: Before Firefox even opens or after you entered your credentials in Firefox on returning to the app? Regarding the console: Would you do you me a favour and download a log reader like https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&hl=en or similar, leave it running in the background while trying to authenticate and tell me what is being logged on the console from streetcomplete when the authorization fails? |
Firefox never comes to the foreground. If I go to Firefox, I see the opened tabs. If I login, it does not return to StreetComplete. If I go to StreetComplete manually, I am not logged in. Plenty of combination of this results in not getting logged in. Do you have an alternative log reader from F-Droid I could use as I prefer apps from there? |
Any should do the job. |
Wow, this is weird. How can it be possible that any app opens another app "in the background"?? Can you close all those opened tabs please and try to reproduce it with a "fresh" Firefox? (No openstreetmap tabs opened). Is the behavior that a tab opened but Android did not switch from StreetComplete to Firefox reproducable? |
@PanderMusubi Maybe you have a tab queue enabled in Firefox (https://support.mozilla.org/en-US/kb/open-links-background-later-viewing-firefox-android)? Is Firefox set as the default browser? (https://support.mozilla.org/en-US/kb/make-firefox-default-browser-android#w_android-6-marshmallow-and-higher) |
Same problem here using Firefox on Android 7.1 and authenticating to OpenStreetMap using the Google account. I see the requested to authorize the application inside the browser, give it and the tab closes. Then Streetcomplete says there was a problem connecting to the server and can't login. Subsequent requests to authenticate open the browser which closes immediately, as described above. Can I help providing further informations? Really like the idea, hope use it soon |
Ok, temporarily disabling the tab queue in Firefox I could log in. |
Oh man... a neverending story. I summarize:
Result: Login with OAuth is broken either way when using the Google Account and Firefox as a browser, no matter what. Who is to blame? Google, for enforcing the use of an external browser. Anyway, I fear this problem cannot be solved, as described aboce. |
The stack trace is:
The tab queue feature immediately sends the user back to the app the user was coming from (calls Implementation should:
|
Perhaps get some advice from Firefox as they might have some extra solutions of plans in the near future. More apps will have the same challenge. Depending on Android System WebView app could be a temporarily solution. Non-custom ROMs all have it. |
Android has also another default system browser, which is used to sign into free wifi networks (not the WebViews), could you use that to do the authorization? |
The system browser has been removed (and replaced with Chrome) with newer Android versions, as far as I know. |
On LineageOS, there is a browser for wifi login. perhaps you could detet if that is there, use, that, it not, use webview, if not, use default user browser (probably firefix/chromium) |
Turns out this was pretty easy to fix. |
neither Firefox nor OsmAnd~(2.6.3) were able to authorize StreetComplete. |
Version 1 or 1.1? (this has been fixed in 1.1) |
Yes, I've seen the Closed label for this issue. I just wanted to say what I did :)) |
I still have an authorization issue on LineageOS, with SC version 1.3 from F-Droid. It opens the LineageOS broswer (Jelly), I can login to OSM and authorize the app, but then instead of returning to SC, it redirects to my search engine with a search query So, either the LineageOS browser does not take into account the |
That sound's like LineageOS's browser's fault. If LineageOS browser does not call StreetComplete, then StreetComplete can not answer. |
I tried with another simple browser (de.baumann.browser) and it worked, so you must be right. Do you have any pointer to the method you use to communicate with the browser, so that I can report the bug against LineageOS? |
I reported the issue at the issue tracker of LineageOS a long time ago and there is still no response: https://jira.lineageos.org/browse/BUGBASH-1393 |
I've updated the issue, telling them it's still present in 15.1. |
I am getting exactly this error with latest firefox from play store or even when changing my default browser to chrome. Browser comes up, I log in to OSM, I authorize the app, and then I am taken back to the app but get this "Unable to reach the authorization server" error. |
What is your phone and Android version? Are you using Android or one of special versions like Firefox Focus/Firefox Preview etc? |
What is your phone and Android version? Are you using Android or one of
special versions like Firefox Focus/Firefox Preview etc?
Android: 7.7.1
Phone: Nokia 2
Model: TA-1035
Browser: Latest Firefox from Google Play (but I also tried with Chrome and
got the same result).
One thing: my phone has *very* little RAM, so usually switching apps and
switching back causes the first app to reload. Maybe some state is not
being saved when Android OOMs the app after opening the browser?
|
That would make sense and would be sadly probably unfixable (or to be more exact - not fixable in way that is reasonable to implement). |
@matkoniecz really? I thought Android basically assumed any app could be "killed" at any time and everything is meant to be persisted temporarily to avoid this? In any case -- can you think of any workaround I could maybe try to keep the app "open" long enough to complete the login? |
I may be wrong and there may be way too fix it. Opening a new issue may be a good idea (not sure whatever the author of the app noticed this discussion in a closed issue). I may be wrong but I think that browser + StreetComplete In this situation is de facto a single app during this operation - with bigger resource requirements. |
I noticed it now |
I cannot authorize StreetComplete on LineageOS 17 (Android 10). When clicking authorize, my default browser (Firefox preview) opens, I am asked to connect to my OSM account, then I grant access to StreetComplete and then nothing happens. When I return to StreetComplete I see the loading message. |
This is likely an issue with "Firefox preview". (What is Firefox Preview?) Though, perhaps I should revert to the old solution - using a WebView within the app. no external dependency on a browser necessary. |
That's Firefox preview: https://play.google.com/store/apps/details?id=org.mozilla.fenix |
@mimi89999 can you test it with https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/ ? |
I can confirm that it works fine with Fennec F-Droid |
I'm getting this on stock Android 8.1.0 with chrome installed. I had previously attempted with firefox, bromite, etc. and reinstalled Chrome to test this but no luck |
tried with Fennec as well, still getting the error |
ok. managed to solve it. downloaded release 0.13 (which uses a different auth method), authorised and then downloaded latest version. |
I can confirm with 16.1 - 17.3 that auth doesn't work with Firefox Fenix (Preview) and integrated browser. In both scenarios I get "Unknown protocol" |
still broken 👎 (version 18.0) |
It is fixed in the development branch and will be released for the next major |
Thank you! For next time, you can use tag to mark this commit by
which will link fix with bug and also appears in bug, so people will instantly know it's fixed and bug closes itself :) |
I'd like to start contributing, any sign of alpha/beta release? @westnordost |
No, will still take time. Just use Firefox or Chrome to login
…On 7 April 2020 00:14:29 CEST, David Heidelberg ***@***.***> wrote:
I'd like to start contributing, any sign of alpha/beta release?
@westnordost
|
it accept my authorization, but then it re-ask after every change. And nothing gets pushed onto osm servers. I'll probably need this fix. |
Authorize OSM access is not working in version 1.0 on LineageOS with GAPPS pico and F-Droid. I can choose to authorize via OsmAnd~, which doesn't work at all and results in a place in the middle of the ocean. Other way of authorization is via Firefox. That results in an error
Unable to reach the authorization server
. However, when I open Firefox manually, I see a tab opened for authorization. Logging in has no further effect on the app where I remainNot yet authorized
.Trying to downgrade to 0.13, to test that, resulted in an unknown error. De-installing 1.0 and installing 0.13 worked. There authorization works properly as it seems to be a different implementation.
The text was updated successfully, but these errors were encountered: