Starts in:
1 DAY
12 HRS
24 MIN
32 SEC
Starts in:
1 D
12 H
24 M
32 S

Activities of "Leonardo.Willrich"

  • ABP Framework version: v5.3
  • UI type: Blazor WASM
  • DB provider: EF Core

I have an external application that accesses the Web API. To do that, it requests the Token using the method access/token and passing the client_id, client_secret, and grant_type parameters. It was working, but, it is no longer working. Calling access/token by Postman only returns "Invalid_Client", it seems that the client doesn't exist, which is not true. Checking the logs, the it says that the secret doesn't match, but, I am 100% sure that it is the same secret. The previous secret was expired, so, I've changed the date/time for it. I've restarted the application and cleaned the Redis cache to be sure it wouldn't be some cache issue.

Here is my request in Postman. In the Headers, I have the property "__tenants" with the tenant name:

Here is the Log file for the request in the Web Api: [15:17:19 INF] Request starting HTTP/1.1 POST https://localhost:44364/connect/token application/x-www-form-urlencoded 79 [15:17:19 DBG] Request path /connect/token matched to endpoint type Token [15:17:19 DBG] Endpoint enabled: Token, successfully created handler: IdentityServer4.Endpoints.TokenEndpoint [15:17:19 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.TokenEndpoint for /connect/token [15:17:19 DBG] Start token request. [15:17:19 DBG] Start client validation [15:17:19 DBG] Start parsing Basic Authentication secret [15:17:19 DBG] Start parsing for secret in post body [15:17:19 DBG] Parser found secret: PostBodySecretParser [15:17:19 DBG] Secret id found: SBC_Reports_2 [15:17:19 DBG] client configuration validation for client SBC_Reports_2 succeeded. [15:17:19 DBG] No matching hashed secret found. [15:17:19 DBG] Secret validators could not validate secret [15:17:19 INF] {"ClientId": "SBC_Reports_2", "Category": "Authentication", "Name": "Client Authentication Failure", "EventType": "Failure", "Id": 1011, "Message": "Invalid client secret", "ActivityId": "400001eb-0004-b900-b63f-84710c7967bb", "TimeStamp": "2022-07-11T03:17:19.0000000Z", "ProcessId": 29156, "LocalIpAddress": "::1:44364", "RemoteIpAddress": "::1", "$type": "ClientAuthenticationFailureEvent"} [15:17:19 ERR] Client secret validation failed for client: SBC_Reports_2. [15:17:19 INF] Request finished HTTP/1.1 POST https://localhost:44364/connect/token application/x-www-form-urlencoded 79 - 400 - application/json;+charset=UTF-8 28.5513ms

Here is the client with the Secret:

Sometimes, when adding another secret or doing some changes in the Identity Client, using the framework UI, it throws an exception:

  • ABP Framework version: 5.3.0
  • UI type: Blazor WASM
  • DB provider: EF Core

Hi,

I want to create the tenant in the database and that the user name, surname, and username have a valid name instead of "admin" as it is hardcoded. What is the best way to implement that? I have a "Register" form where I can add the fields, but, also I'll be creating Tenants from the default CRUD.

Email sent.

Hi. I'm still facing the issue. In another machine, it is saying that NPM is not compatible with NodeJS. Even uninstalling and installing NodeJS again, NPM is still on an old version.

Would you mind connecting to my machine to check this issue? Would that be possible? If so, just let me know when it suits you. I'm in NZ, so, the time zone may be different from yours.

Ok, I've tried one more time and it is still deleting some files after abp install-libs. Possibly, it is only happening in my env. Do you have any idea what else it could be?

An email was sent with Host project. Just let me know if you have received it or not.

Hi. Yes, I have Yarn: yarn install v1.9.4

I've removed node_modules, but, still the same behaviour. I have deleted bin/obj folders as well, just in case, but, no success. Do you want a zip copy of my project? The weirdest thing is that in a new project (template) it works. I've compared two folders but I haven't found anything different at all.

Before:

After:

As I was suspecting, in a new project it doesn't remove the libs files. And it has the flag-icons.min.css file instead of flag-icon.min.css file. The package.json are the same:

{
  "version": "1.0.0",
  "name": "my-app",
  "private": true,
  "dependencies": {
    "@volo/abp.aspnetcore.mvc.ui.theme.lepton": "~5.2.2",
    "@volo/account": "~5.2.2"
  }
}

What else should I look to try to solve this problem? This project was created and migrated since version 4.0. Possibly, during some migration, I've missed something.

And what happens if it is working on a new project?

Showing 71 to 80 of 192 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06