Activities of "r.abouzid"

Hi,

To clarify, this issue is not related to the Angular client, it’s happening directly at the API level. After the /api/two-factor-token/verify-two-factor-code endpoint succeeds, I’m trying to understand how to correctly complete the 2FA flow with the /connect/token endpoint.

Thanks.

Recommended Integration Steps:

  1. Attempt login via /connect/token.
  2. If response is RequiresTwoFactor, prompt for 2FA code.
  3. Call /api/account/send-two-factor-code to send the code.
  4. Call /api/two-factor-token/verify-two-factor-code to verify the code.
  5. On success, retry /connect/token with the necessary 2FA parameters and cookies.

on the 5th step, i always get the same reponse,

{
    "error": "invalid_grant",
    "error_description": "RequiresTwoFactor",
    "error_uri": "https://documentation.openiddict.com/errors/ID2024",
    "userId": "64bd036e40dfb566c9663a1cac555ef0",
    "twoFactorToken": "CfDJ8OjtbOcGOuhPj+12OyiWV3SXN7Fyxkz++4yTtXvf1kghPvK1jWBjBlBAi4eJlLYr/hoL7LjhxYuf7A6JE0ZCycrCq7p+Uum/nrfCg1FSrKCgtEvAm2giNaxMXgC2lVwAfFStjyTvFnUphTpOKTlyFy0zFIYTE5w7p1Qn5l5c37ApBnPMJIOEkGitR0c71W/h42NOBDkbkslm8LD4uYPplW64OS2+kv1qX6ztA05N+XguZGEw+w+ZZJ0DgmPp0jXfug=="
}

Could you please clarify what specific parameters need to be included in the /connect/token request after a successful two-factor verification?

here are the details of the user :

    "tenantId": null,
    "userName": "anass02",
    "email": "usermail@gmail.com",
    "name": "anass",
    "surname": "ar",
    "emailConfirmed": true,
    "phoneNumber": "212XXXXXXXXX",
    "phoneNumberConfirmed": true,
    "supportTwoFactor": false,
    "twoFactorEnabled": true,
    "isActive": true,
    "lockoutEnabled": true,
    "isLockedOut": false,
    "lockoutEnd": null,
    "shouldChangePasswordOnNextLogin": false,
    "concurrencyStamp": "ebfb2a9518da4b25a78e77f312dc7eec",
    "roleNames": null,
    "accessFailedCount": 0,
    "lastPasswordChangeTime": "2025-09-30T10:26:11.4619998+00:00",
    "isExternal": false,
    "isDeleted": false,
    "deleterId": null,
    "deletionTime": null,
    "lastModificationTime": "2025-10-06T10:24:23.5644194",
    "lastModifierId": "f83f436c-cc3f-2f6b-8b58-3a1ca8a0e780",
    "creationTime": "2025-09-30T11:26:11.5069088",
    "creatorId": "f83f436c-cc3f-2f6b-8b58-3a1ca8a0e780",
    "id": "64bd036e-40df-b566-c966-3a1cac555ef0",
    "extraProperties": {}
}

as you can see emailConfirmed is true, supportTwoFactor false, twoFactorEnabled true.

is the Angular version in the microservices template the same as the one generated in DDD projects?

Hi,

Could you please provide more explanation or add more details? Your response is too abstract. The problem is still persisting, and we need a solution.

Regards

Hello, I tried using Integration Services, i no longer get the authorization error. However, the client, after receiving the gRPC response, raises the exception :

Grpc.Core.RpcException
  HResult=0x80131500
  Message=Status(StatusCode="Internal", Detail="Failed to deserialize response message. The response header contains a gRPC status of OK, which means any message returned to the client for this call should be ignored. A unary or client streaming gRPC call must have a response message, which makes this response invalid.")

I want to bypass the authorization for all the calls via gRPC, from the µservices, and keep the authorization for the external calls coming from the Gateway.

Hi support,

I resolved the problem by** launching the Volo.Abp.Studio.Backend.Host.exe** (BackendUI solution) located in the path: **\AppData\Local\abp-studio\current**. This was necessary because the logs showed that Volo.Abp.Studio.UI.Host.exe couldn't connect to the backend at http://localhost:38271.

However, the issue is that every time I want to work with ABP Studio, I need to manually launch the Volo.Abp.Studio.Backend.Host.exe first. Otherwise, I get the unprompted window opening.

2024-10-11 10:18:30.310 +01:00 [INF] Downloading release file 'releases.beta.json' from 'https://abp.io/api/abp-studio/r/download/windows/releases.beta.json?arch=x64&os=win&rid=win-x64&id=abp-studio&localVersion=0.9.1'. 2024-10-11 10:18:30.311 +01:00 [INF] [VPK] Creating HttpClient for AbpIoFileDownloader 2024-10-11 10:18:30.312 +01:00 [INF] Start processing HTTP request GET https://abp.io/api/abp-studio/r/download/windows/releases.beta.json?arch=x64&os=win&rid=win-x64&id=abp-studio&localVersion=0.9.1 2024-10-11 10:18:30.312 +01:00 [INF] Sending HTTP request GET https://abp.io/api/abp-studio/r/download/windows/releases.beta.json?arch=x64&os=win&rid=win-x64&id=abp-studio&localVersion=0.9.1 2024-10-11 10:18:30.620 +01:00 [INF] Received HTTP response headers after 307.9398ms - 200 2024-10-11 10:18:30.620 +01:00 [INF] End processing HTTP request after 308.2547ms - 200 2024-10-11 10:18:30.640 +01:00 [INF] No updates, remote version (0.9.1) is not newer than current version (0.9.1) and / or downgrade is not enabled. 2024-10-11 10:18:30.641 +01:00 [INF] [VPK] No updates available. 2024-10-11 10:18:30.643 +01:00 [INF] Completed task execution: Checking for new version of ABP Studio 2024-10-11 10:18:30.643 +01:00 [INF] Starting task execution: Checking pre-requirements 2024-10-11 10:18:33.747 +01:00 [INF] CLI command executed. Command: abp cli version Working directory: C:\Users\RidaABOUZID\AppData\Local\abp-studio\current {"ExitCode":0,"IsSuccess":true,"StartTime":"2024-10-11T10:18:31.6911563+01:00","ExitTime":"2024-10-11T10:18:33.7392696+01:00","RunTime":"00:00:02.0481133","$type":"CommandResult"} 2024-10-11 10:18:34.472 +01:00 [INF] Completed task execution: Checking pre-requirements 2024-10-11 10:18:36.664 +01:00 [INF] Trying to connect to ABP Studio Backend: http://localhost:38271 2024-10-11 10:18:45.832 +01:00 [INF] Trying to connect to ABP Studio Backend: http://localhost:38271 2024-10-11 10:18:55.058 +01:00 [INF] Trying to connect to ABP Studio Backend: http://localhost:38271 2024-10-11 10:18:59.126 +01:00 [WRN] Could not connect to ABP Studio Backend! Detail: Failed to connect to StreamingHub 'IStudioBackendHub'. (Status(StatusCode="Unavailable", Detail="Error connecting to subchannel.", DebugException="System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it."))

Thanks for your reply. I tried uninstalling ABP Studio and reinstalling it, but the issue still persists

Showing 1 to 9 of 9 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 12, 2025, 10:36
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.