in core-android/src/main/java/com/uber/sdk/android/core/auth/LegacyUriRedirectHandler.java [84:127]
private Pair<String, String> getLegacyModeMessage(@NonNull Context context, @NonNull
LoginManager
loginManager) {
final Pair<String, String> titleAndMessage;
switch (mode) {
case MISCONFIGURED_AUTH_CODE_FLOW:
titleAndMessage = new Pair<>("Misconfigured Redirect URI - See log.",
"The Uber Authentication Flow for the Authorization Code Flow has "
+ "been upgraded in 0.8.0 and a redirect URI must now be supplied to the application. "
+ "You are seeing this error because the use of deprecated method "
+ "LoginManager.setRedirectForAuthorizationCode() indicates your flow may not "
+ "support the recent changes. See https://github"
+ ".com/uber/rides-android-sdk#authentication-migration-version"
+ "-08-and-above for resolution steps"
+ "to insure your setup is correct and then migrate to the non-deprecate "
+ "method LoginManager.setAuthCodeFlowEnabled()");
break;
case MISSING_REDIRECT:
titleAndMessage = new Pair<>("Null Redirect URI - See log.",
"Redirect URI must be set in "
+ "Session Configuration.");
break;
case MISMATCHING_URI:
String generatedRedirectUri = context.getPackageName().concat(""
+ ".uberauth://redirect");
String setRedirectUri = loginManager.getSessionConfiguration().getRedirectUri();
titleAndMessage = new Pair<>("Misconfigured Redirect URI - See log.",
"Misconfigured redirect_uri. See https://github"
+ ".com/uber/rides-android-sdk#authentication-migration-version-08-and-above"
+ "for more info. Either 1) Register " + generatedRedirectUri + " as a "
+ "redirect uri for the app at https://developer.uber.com/dashboard/ and "
+ "specify this in your SessionConfiguration or 2) Override the default "
+ "redirect_uri with the current one set (" + setRedirectUri + ") in the "
+ "AndroidManifest.");
break;
default:
titleAndMessage = new Pair<>("Unknown URI Redirect Issue", "Unknown issue, see "
+ "log");
}
return titleAndMessage;
}