Merge pull request #9152 from abpframework/auto-merge/rel-4-3/412

Merge branch dev with rel-4.3
pull/9155/head
maliming 4 years ago committed by GitHub
commit 68b19c2503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@ namespace Volo.Abp.Http.Client.IdentityModel
{ {
await IdentityModelAuthenticationService.TryAuthenticateAsync( await IdentityModelAuthenticationService.TryAuthenticateAsync(
context.Client, context.Client,
context.RemoteService.GetIdentityClient() context.RemoteService.GetIdentityClient() ?? context.RemoteServiceName
); );
} }
} }

@ -5,7 +5,6 @@ using Volo.Abp.MultiTenancy;
namespace Volo.Abp.IdentityModel namespace Volo.Abp.IdentityModel
{ {
[Serializable] [Serializable]
[IgnoreMultiTenancy]
public class IdentityModelTokenCacheItem public class IdentityModelTokenCacheItem
{ {
public string AccessToken { get; set; } public string AccessToken { get; set; }

@ -213,8 +213,15 @@ namespace Volo.Abp.Account.Web.Pages.Account
if (result.IsLockedOut) if (result.IsLockedOut)
{ {
Logger.LogWarning($"External login callback error: user is locked out!");
throw new UserFriendlyException("Cannot proceed because user is locked out!"); throw new UserFriendlyException("Cannot proceed because user is locked out!");
} }
if (result.IsNotAllowed)
{
Logger.LogWarning($"External login callback error: user is not allowed!");
throw new UserFriendlyException("Cannot proceed because user is not allowed!");
}
if (result.Succeeded) if (result.Succeeded)
{ {

Loading…
Cancel
Save