Open Closed

Web project is not redirecting back to Dashboard page after successfull login and user data not loaded. #459


User avatar
0
suraj.kumbhar created
  • ABP Commercial version: v3.1.2
  • UI type: MVC
  • Tiered (MVC): yes
  • Exception message and stack trace: 2020-10-01 05:26:47.364 +00:00 [INF] Executed endpoint '/Index' 2020-10-01 05:26:47.364 +00:00 [INF] AUDIT LOG: [302: POST ] /
  • UserName - UserId : -
  • ClientIpAddress : ::1
  • ExecutionDuration : 24
  • Actions:
    • Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor.OnPostLoginAsync (1 ms.) {}

2020-10-01 05:26:47.365 +00:00 [INF] Request finished in 26.9814ms 302 text/html; charset=utf-8 2020-10-01 05:27:31.955 +00:00 [INF] Request starting HTTP/2.0 POST https://localhost:44393/signin-oidc application/x-www-form-urlencoded 1655 2020-10-01 05:27:32.274 +00:00 [INF] AuthenticationScheme: Identity.External signed in. 2020-10-01 05:27:32.275 +00:00 [INF] Request finished in 320.3263ms 302 2020-10-01 05:27:32.280 +00:00 [INF] Request starting HTTP/2.0 GET https://localhost:44393/?handler=Login
2020-10-01 05:27:32.284 +00:00 [INF] Executing endpoint '/Index' 2020-10-01 05:27:32.286 +00:00 [INF] Route matched with {page = "/Index", action = "", controller = "", area = ""}. Executing page /Index 2020-10-01 05:27:32.286 +00:00 [INF] Executing handler method ****.Web.Pages.IndexModel.OnGet - ModelState is "Valid" 2020-10-01 05:27:32.286 +00:00 [INF] Executed handler method OnGet, returned result . 2020-10-01 05:27:32.286 +00:00 [INF] Executing an implicit handler method - ModelState is "Valid" 2020-10-01 05:27:32.286 +00:00 [INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. 2020-10-01 05:27:32.300 +00:00 [DBG] Added bundle 'Lepton.Global' to the page in 1.81 ms. 2020-10-01 05:27:32.303 +00:00 [INF] Authorization failed. 2020-10-01 05:27:32.305 +00:00 [INF] Authorization failed. 2020-10-01 05:27:32.311 +00:00 [DBG] Added bundle 'Lepton.Global' to the page in 4.30 ms. 2020-10-01 05:27:32.312 +00:00 [INF] Executed page /Index in 26.7772ms 2020-10-01 05:27:32.312 +00:00 [INF] Executed endpoint '/Index' 2020-10-01 05:27:32.313 +00:00 [INF] Request finished in 33.0781ms 200 text/html; charset=utf-8 2020-10-01 05:27:32.427 +00:00 [INF] Request starting HTTP/2.0 GET https://localhost:44393/Abp/ApplicationConfigurationScript
2020-10-01 05:27:32.429 +00:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2020-10-01 05:27:32.430 +00:00 [INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationConfigurationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Get() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController (Volo.Abp.AspNetCore.Mvc). 2020-10-01 05:27:32.431 +00:00 [DBG] Executing AbpApplicationConfigurationAppService.GetAsync()... 2020-10-01 05:27:32.433 +00:00 [INF] Request starting HTTP/2.0 GET https://localhost:44393/Abp/ServiceProxyScript
2020-10-01 05:27:32.435 +00:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2020-10-01 05:27:32.436 +00:00 [INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). 2020-10-01 05:27:32.438 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2020-10-01 05:27:32.469 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 33.2521ms 2020-10-01 05:27:32.470 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2020-10-01 05:27:32.470 +00:00 [INF] Request finished in 37.4282ms 200 application/javascript 2020-10-01 05:27:32.477 +00:00 [INF] Authorization failed.

  • Steps to reproduce the issue: Run 3 Project identity Server,HttpApi.Host and Web then try to login thorugh Web Project login Page its not loading User and Dashboard. *** Added Base Module As A project using ABP SUITE : Account ,IdentitySErver and IdentityServer UI.

Web Project Login page:

Redirect to IdentityServer and Enter Credentials:

Not Redirecting to Dashboard and User id not loaded, Returned back to login page


8 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Added Base Module As A project using ABP SUITE : Account ,IdentitySErver and IdentityServer UI.

    These modules are already pre install to startup template, can you explain in detail?

  • User Avatar
    0
    suraj.kumbhar created

    As we want extend/ make some changes in those module we added it.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can directly extend these modules without using ABP suite to install again

  • User Avatar
    0
    suraj.kumbhar created

    Hello, Please send me the link how we can extend it without adding. Actually its a other part. My main issue is why its not redirecting to Dashboard page after login?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I can't reproduce your problem. can you share a simple project to me ? thanks. shiwei.liang@volosoft.ccom

  • User Avatar
    0
    suraj.kumbhar created

    I have shared a project with you on git. Please let me know! Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI

    I did not receive any mail, could you try send again.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    Try remove :

    In fact, these modules are pre-installed and configured correctly, you don't need to install them again using the suite

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