Open Closed

abp cli login issue #2094


User avatar
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:"
  1. Type abp login (username) -p (password)
  2. Push enter

Expected: It should login Actual: The above error


5 Answer(s)
  • User Avatar
    0

    I have tried:

    • Disabling network security
    • Disabling the network pihole
    • Changing the password (thinking some character was making it fail)
    • Another computer
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ErrorDescription: RequiresTwoFactor

    Hi Can you try to disable the 2FA of your account?

    https://account.abp.io/

  • User Avatar
    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can enable the 2fa after logging into the CLI, and we will support it in the future,

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://github.com/abpframework/abp/issues/10565

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09