Skip to content
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 @@ -56,6 +56,13 @@ public bool IsBrokerInstalledAndInvokable(AuthorityType authorityType)
{
using (_logger.LogMethodDuration())
{
// ADFS is not supported with broker
if (authorityType == AuthorityType.Adfs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would have done smth like if (authorityType != AAD) { throw }

{
_logger.Info($"[Android broker] Unsupported authority type for broker: {authorityType}. Broker authentication will not be used.");
return false;
}

bool canInvoke = CanSwitchToBroker();
_logger.Verbose(()=>"[Android broker] Can invoke broker? " + canInvoke);

Expand Down