Skip to content

Commit

Permalink
Authorize OSM access not working (fix #413)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Jul 26, 2017
1 parent f0e80f9 commit 813fbec
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ private enum State
INITIAL,
RETRIEVING_REQUEST_TOKEN,
AUTHENTICATING_IN_BROWSER,
AUTHENTICATED_FROM_BROWSER,
RETRIEVING_ACCESS_TOKEN,
POST_AUTHORIZATION,
CANCELLED
Expand Down Expand Up @@ -145,6 +146,7 @@ public void onNewIntent(Intent intent)
if (uri != null && uri.getScheme().equals(CALLBACK_SCHEME) && uri.getHost().equals(CALLBACK_HOST))
{
verifier = uri.getQueryParameter("oauth_verifier");
state = State.AUTHENTICATED_FROM_BROWSER;
}
else
{
Expand All @@ -161,7 +163,7 @@ private void continueAuthentication()
state = State.RETRIEVING_REQUEST_TOKEN;
new RetrieveRequestTokenTask().execute();
}
else if(state == State.AUTHENTICATING_IN_BROWSER)
else if(state == State.AUTHENTICATED_FROM_BROWSER)
{
state = State.RETRIEVING_ACCESS_TOKEN;
new RetrieveAccessTokenTask().execute();
Expand Down

0 comments on commit 813fbec

Please sign in to comment.