Skip to content

Commit fae212f

Browse files
committed
feedback
1 parent 58c771c commit fae212f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,12 @@ public static final class SWITCH_BROWSER {
545545
public static final String CODE = "code";
546546

547547
/**
548-
* String Query parameter key for the endpoint.
548+
* String Query parameter key for the switchBrowser action uri.
549549
*/
550550
public static final String ACTION_URI = "action_uri";
551551

552552
/**
553-
* String Query parameter key for the endpoint.
553+
* String Query parameter key for the switchBrowser action.
554554
*/
555555
public static final String ACTION = "action";
556556

common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ protected boolean processSwitchToBrowserRequest(@NonNull final Uri uri) {
339339
final String code = uri.getQueryParameter(AuthenticationConstants.SWITCH_BROWSER.CODE);
340340
if (action_uri == null || code == null) {
341341
// This should never happen, but if it does, we should log it and return.
342-
Logger.error(TAG, "Switch browser action URI or code is null. Cannot switch browser.", null);
342+
Logger.error(TAG, "Switch browser action URI is null: " + StringUtil.isNullOrEmpty(action_uri), null);
343+
Logger.error(TAG, "Switch browser code is null: " + StringUtil.isNullOrEmpty(code), null);
343344
return false;
344345
}
345346
final HashMap<String, String> queryParams = new HashMap<>();

0 commit comments

Comments
 (0)