Starts in:
2 DAYS
4 HRS
32 MIN
25 SEC
Starts in:
2 D
4 H
32 M
25 S
Open Closed

abp upgrade errors #4173


User avatar
0
Dina created
  • ABP Framework version: v"7.0.0-rc.3"
  • UI type MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

We are working on a new abp project (version 7) and we have some issues 1- When we updated the abp today from "7.0.0-rc.2" to "7.0.0-rc.3", we faced issue

2- we have 3 projects and each one should have different logic and UI for login process, so we created a middleware at the openiddict auth to handle each project request but we faced 2 issues

  • First, the “context.Request.HttpContext.GetOpenIddictServerRequest()” is always null, so we can not get the application and check on it

var request = context.Request.HttpContext.GetOpenIddictServerRequest(); if (request.IsClientCredentialsGrantType()) { var application = await _applicationManager.FindByClientIdAsync(request.ClientId); if (application == null) { throw new InvalidOperationException("The application details cannot be found in the database."); } var app = await _applicationManager.GetClientIdAsync(application);

  • And second, when injecting (OpenIddictServerAspNetCoreHandler, IAuthenticationRequestHandler or OpenIddictServerHandlerDescriptor) we face error "ABP-LIC-0013 - License exception: ABP-LIC-0023: An error occured while calling the license server! The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters."

So, please we want an openiddict middleware sample in which we get the ClientId and check on its value

3- Abp exception

Waiting for you reply Thanks


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    1. Can you clear Redis cache and localhost cache and cookies and login again?

    2. context.Request.HttpContext.GetOpenIddictServerRequest()
      Not all requests have OpenIddictServerRequest, only oauth2 requests will have it.

    We will release RC3 soon, you can wait and see.

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