Open Closed

How can I add "AbpApplicationConfigurationAppService.GetAsync() during tenant login #9761


User avatar
0
sghorakavi@cpat.com created

Migrated from 9.0.4 to 9.2.3, Login as Tenant asking user name/pwd

Logs Missing Executing AbpApplicationConfigurationAppService.GetAsync() Executed AbpApplicationConfigurationAppService.GetAsync()..

Logout is not happening at this point. Working with Mai


18 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • When you migrate from ABP 9.0.4 to 9.2.3, the login process for tenants in a tiered MVC application may trigger the AbpApplicationConfigurationAppService.GetAsync() method. This method is responsible for providing application configuration data (such as localization, settings, and features) to the client after authentication.

    • If you see logs indicating that AbpApplicationConfigurationAppService.GetAsync() is being executed during tenant login, this is expected behavior. The application calls this service to retrieve configuration data for the authenticated user and tenant context.

    • If logout is not happening as expected, ensure that your authentication and tenant resolution logic is correctly implemented and that the session or authentication cookies are properly cleared on logout.

    • For customizations, you can override or extend the AbpApplicationConfigurationAppService to include additional configuration data if needed. However, the default behavior is to call this service after a successful login to initialize the client-side application state.

    • If you are experiencing issues with the login or logout flow after migration, review your authentication configuration, tenant resolution, and any custom middleware that may affect the authentication lifecycle.

    No verified source available for this specific query.


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I will test your websites.

    https://abp.io/support/questions/9707/904---923-upgrade?CurrentPage=3#answer-3a1bb055-6b0c-c091-38cd-c034e4cdff6d

    Thanks.

  • User Avatar
    0
    sghorakavi@cpat.com created

    Yes, I need to setup another web site. Will ping you soon. Thank you, Sudha

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, Take your time.

  • User Avatar
    0
    sghorakavi@cpat.com created

    I will get it done today. Got permission to overwrite :-)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great 👍

  • User Avatar
    0
    sghorakavi@cpat.com created

    deployed now. Please check, I am getting 400 error while deployed. We need to focus on logout.

    https://dev.approach.cpat.dev https://cpattest.dev.approach.cpat.dev tenant

    Auth server has [13:37:57 INF] Executed action method Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 156.4549ms. [13:37:57 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [13:37:57 INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 158.821ms [13:37:57 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [13:37:57 INF] Request finished HTTP/1.1 GET https://auth.approach.cpat.dev/Abp/ApplicationLocalizationScript?cultureName=en - 200 100387 application/javascript 259.4242ms [13:37:59 INF] Request starting HTTP/1.1 GET http://auth.approach.cpat.dev/Error?httpStatusCode=400 - null null [13:37:59 DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. [13:37:59 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. [13:37:59 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. [13:37:59 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. [13:37:59 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. [13:37:59 DBG] Get dynamic claims cache for user: e72b5fcc-d7fe-1b79-6205-3a1b1d2526a4 [13:37:59 DBG] SessionId(5ce6bcaf-4c91-47a7-a1f8-fe07a053bf14) found in cache, Updating hit count(5), last access time(8/13/2025 1:37:59 PM) and IP address(::ffff:10.244.11.211). [13:37:59 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [13:37:59 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [13:37:59 INF] Executing action method Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) - Validation state: Valid [13:38:00 INF] Executed action method Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared), returned result Microsoft.AspNetCore.Mvc.ViewResult in 581.6369ms. [13:38:00 INF] Executing ViewResult, running view ~/Views/Error/Default.cshtml. [13:38:00 DBG] Added bundle 'Views.Error.DefaultErrorComponent.default' to the page in 0.15 ms. [13:38:00 DBG] Added bundle 'LeptonX.Global' to the page in 0.30 ms. [13:38:00 DBG] Added bundle 'LeptonX.Global' to the page in 0.87 ms. [13:38:00 INF] Executed ViewResult - view ~/Views/Error/Default.cshtml executed in 26.7518ms. [13:38:00 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 611.7635ms [13:38:00 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [13:38:00 INF] Request finished HTTP/1.1 GET https://auth.approach.cpat.dev/Error?httpStatusCode=400 - 400 null text/html; charset=utf-8 627.3049ms [13:38:00 INF] Request starting HTTP/1.1 GET http://auth.approach.cpat.dev/Abp/ApplicationConfigurationScript - null null [13:38:00 DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. [13:38:00 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. [13:38:00 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. [13:38:00 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. [13:38:00 DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader.`

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have reproduced the 400 error.

    Please share all logs.

    liming.ma@volosoft.com

    Thanks

  • User Avatar
    0
    sghorakavi@cpat.com created

    Sent you logs, pls check your email. Thank you,

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I didn't receive your logs.

    Can you share it via https://wetransfer.com/

    Thanks.

  • User Avatar
    0
    sghorakavi@cpat.com created

    Sent you, pls check

  • User Avatar
    0
    sghorakavi@cpat.com created

    Did you get logs

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Not yet

    liming.ma@volosoft.com

  • User Avatar
    0
    sghorakavi@cpat.com created

    will send you auth and web logs via email

  • User Avatar
    0
    sghorakavi@cpat.com created

    did you get the email ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi Can you sent it to malimings@gmail.com I still haven’t received it. Thanks

  • User Avatar
    0
    sghorakavi@cpat.com created

    I sent it again to your personal email and my personal email. It went to mine fine. Pls check your spam folder as well. Thank you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Let's move to https://abp.io/support/questions/9707/904---923-upgrade?CurrentPage=3#answer-3a1bbd78-ee73-89d3-2c3f-4729039ba854

    Thanks.

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.0.0-preview. Updated on September 05, 2025, 09:28