Base solution for your next web application
Open Closed

IdentityServer and Signature validation failed error #9759


User avatar
0
ivanosw1 created

Prerequisites

  • What is your product version? 9.1.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net Core

If issue related with ABP Framework

  • What is ABP Framework version? 5.10.1

I have enabled IdentityServer4 integration and I've noted that this issue is still present. https://support.aspnetzero.com/QA/Questions/7673/IDX10501-Signature-validation-failed---when-attempting-to-run-ConsoleApiClient

During debug sessions is very annoying beacuse ValidateToken in FrameworkJwtSecurityTokenHandler breaks the flow every time for failed validation. Have you solved it somehow?

Thank you


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ivanosw1

    Somehow, I couldn't reproduce this problem on my environment. Could you share steps to reproduce this error ?

    Thanks,

  • User Avatar
    0
    ivanosw1 created

    Yess, is very easy. Just follow the instrunction on this page: https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Infrastructure-Core-Angular-Identity-Server4-Integration and use the console test program. This is my configuration "IdentityServer": { "IsEnabled": "true", "Authority": "https://localhost:44301/", "ApiName": "default-api", "ApiSecret": "secret", "Clients": [ { "ClientId": "client", "AllowedGrantTypes": [ "password" ], "ClientSecrets": [ { "Value": "def2edf7-5d42-4edc-a84a-30136c340e13" } ], "AllowedScopes": [ "default-api" ] }

    Run Abp in debug mode and after start the console app. ValidateToken throw exception even if the request is correctly executed.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @ivanosw1

    I will check this.