Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

fix sso string compare #1583

Merged
merged 1 commit into from
Apr 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public WebUI(CoreUIParent uiParent, RequestContext context)

public async Task<AuthorizationResult> AcquireAuthorizationAsync(Uri authorizationUri, Uri redirectUri, RequestContext requestContext)
{
bool ssoMode = ReferenceEquals(redirectUri, Constants.UapWEBRedirectUri);
bool ssoMode = string.Equals(redirectUri.OriginalString, Constants.UapWEBRedirectUri, StringComparison.OrdinalIgnoreCase);
if (uiParent.UseHiddenBrowser && !ssoMode && redirectUri.Scheme != Constant.MsAppScheme)
{
throw new AdalException(AdalError.UapRedirectUriUnsupported);
Expand Down