Skip to content
Merged
Changes from 1 commit
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 @@ -66,20 +66,12 @@ protected override async Task<AuthenticationResult> ExecuteAsync(CancellationTok
_logger.Info("Broker is configured and enabled, attempting to use broker instead.");
var brokerResult = await _brokerStrategyLazy.Value.ExecuteAsync(cancellationToken).ConfigureAwait(false);

// fallback to local cache if broker fails
if (brokerResult != null)
{
_logger.Verbose(() => "Broker responded to silent request.");
return brokerResult;
}
else
{
_logger.Verbose(() => "Broker could not satisfy the silent request.");
throw new MsalUiRequiredException(
MsalError.FailedToAcquireTokenSilentlyFromBroker,
"Broker could not satisfy the silent request.",
null,
UiRequiredExceptionClassification.AcquireTokenSilentFailed);
}
}

_logger.Verbose(() => "Attempting to acquire token using local cache.");
Expand Down