示例#1
0
        internal async override Task PreRunAsync()
        {
            IAccount account = await GetAccountFromParamsOrLoginHintAsync(_silentParameters).ConfigureAwait(false);

            AuthenticationRequestParameters.Account = account;

            AuthenticationRequestParameters.Authority = AuthenticationRequestParameters.AuthorityOverride == null
                ? Authority.CreateAuthorityWithAccountTenant(ServiceBundle, account)
                : Instance.Authority.CreateAuthorityWithOverride(
                ServiceBundle,
                AuthenticationRequestParameters.AuthorityOverride);
        }