0
- ABP Framework version: v4.4.3
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
[09:52:10 ERR] Could not get token from the OpenId Connect server! ErrorType: Protocol. Error: invalid_grant. ErrorDescription: RequiresTwoFactor. HttpStatusCode: BadRequest
Volo.Abp.AbpException: Could not get token from the OpenId Connect server! ErrorType: Protocol. Error: invalid_grant. ErrorDescription: RequiresTwoFactor. HttpStatusCode: BadRequest
at Volo.Abp.IdentityModel.IdentityModelAuthenticationService.GetAccessTokenAsync(IdentityClientConfiguration configuration) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.IdentityModel\Volo\Abp\IdentityModel\IdentityModelAuthenticationService.cs:line 91
at Volo.Abp.Cli.Auth.AuthService.LoginAsync(String userName, String password, String organizationName) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Auth\AuthService.cs:line 90
at Volo.Abp.Cli.Commands.LoginCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\LoginCommand.cs:line 73
at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 158
at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 66
- Steps to reproduce the issue:"
- Type
abp login (username) -p (password)
- Push enter
Expected: It should login Actual: The above error
5 Answer(s)
-
0
I have tried:
- Disabling network security
- Disabling the network pihole
- Changing the password (thinking some character was making it fail)
- Another computer
-
0
ErrorDescription: RequiresTwoFactor
Hi Can you try to disable the 2FA of your account?
https://account.abp.io/
-
0
ErrorDescription: RequiresTwoFactor
Hi
Can you try to disable the 2FA of your account?https://account.abp.io/
That does allow the cli to login, but makes our account less secure. It was working with 2FA until recently.
-
0
hi
You can enable the 2fa after logging into the CLI, and we will support it in the future,
-
0
https://github.com/abpframework/abp/issues/10565