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

Commit

Permalink
fix sso string compare (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Apr 17, 2019
1 parent a806ef3 commit 35189d5
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 35189d5

Please sign in to comment.