Browse Source
Use PreSignInCheckAsync in token exchange flow
pull/23281/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
1 deletions
-
modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/TokenController.TokenExchange.cs
|
|
@ -41,7 +41,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, |
|
|
|