Roc
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/TokenController.AuthorizationCode.cs
-
modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/TokenController.DeviceCode.cs
-
modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/TokenController.RefreshToken.cs
|
|
@ -33,7 +33,7 @@ public partial class TokenController |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Ensure the user is still allowed to sign in.
|
|
|
// Ensure the user is still allowed to sign in.
|
|
|
if (!await SignInManager.CanSignInAsync(user)) |
|
|
if (!await PreSignInCheckAsync(user)) |
|
|
{ |
|
|
{ |
|
|
return Forbid( |
|
|
return Forbid( |
|
|
authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, |
|
|
authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, |
|
|
|
|
|
@ -33,7 +33,7 @@ public partial class TokenController |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Ensure the user is still allowed to sign in.
|
|
|
// Ensure the user is still allowed to sign in.
|
|
|
if (!await SignInManager.CanSignInAsync(user)) |
|
|
if (!await PreSignInCheckAsync(user)) |
|
|
{ |
|
|
{ |
|
|
return Forbid( |
|
|
return Forbid( |
|
|
authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, |
|
|
authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, |
|
|
|
|
|
@ -33,7 +33,7 @@ public partial class TokenController |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Ensure the user is still allowed to sign in.
|
|
|
// Ensure the user is still allowed to sign in.
|
|
|
if (!await SignInManager.CanSignInAsync(user)) |
|
|
if (!await PreSignInCheckAsync(user)) |
|
|
{ |
|
|
{ |
|
|
return Forbid( |
|
|
return Forbid( |
|
|
authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, |
|
|
authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, |
|
|
|