Skip to content

Commit 6178335

Browse files
authored
Add redirect URI query parameter
1 parent a389026 commit 6178335

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,9 @@ protected boolean processSwitchToBrowserRequest(@NonNull final Uri uri) {
366366
final String authority = paths[0];
367367
final Uri.Builder uriBuilder = new Uri.Builder()
368368
.scheme("https")
369-
.authority(authority)
370-
.appendQueryParameter(AuthenticationConstants.SWITCH_BROWSER.CODE, code);
369+
.encodedAuthority(authority)
370+
.appendQueryParameter(AuthenticationConstants.SWITCH_BROWSER.CODE, code)
371+
.appendQueryParameter(AuthenticationConstants.OAuth2.REDIRECT_URI, mRedirectUrl);
371372
for (int i = 1; i < paths.length; i++) {
372373
uriBuilder.appendPath(paths[i]);
373374
}

0 commit comments

Comments
 (0)