From 12a5f4f3aebbb2ca3d8f38bba58fbcc8a1b01c70 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 28 Dec 2020 17:29:22 +0200 Subject: [PATCH] fixes in oauth opr --- OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java b/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java index 5bacc2d60b..066db62593 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java @@ -315,8 +315,8 @@ public class IntentHelper { if (intent != null && intent.getData() != null) { Uri uri = intent.getData(); if (uri.toString().startsWith(OPRWebviewActivity.OPR_OAUTH_PREFIX)) { - String token = uri.getQueryParameter("token"); - String username = uri.getQueryParameter("username"); + String token = uri.getQueryParameter("opr-token"); + String username = uri.getQueryParameter("opr-nickname"); //TODO android.util.Log.d("TAG", "parseOprOAuthIntent: " + uri.toString()); android.util.Log.d("TAG", "parseOprOAuthIntent: " + token);