Starts in:
1 DAY
19 HRS
57 MIN
19 SEC
Starts in:
1 D
19 H
57 M
19 S
Open Closed

Site redirecting to authserver 400 when deployed to IIS server #4638


User avatar
0
isteer created

Hello Team,

OUR ABP CONFIGURATION:

ABP Framework version: v7.0.0 UI type: MVC DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): Tiered MVC Exception message and stack trace

We have deployed our ABP application on IIS server, we have tiered MVC application so we hosted all ports:

  1. Auth server (port - 44349) : hosted on https://authserver.stage.careermaps.co.uk/ on IIS
  2. Swagger (port- 44324) : hosted on https://host.stage.careermaps.co.uk/
  3. Web-App (port 44389) : hosted on https://web.stage.careermaps.co.uk/

The issue is when we open https://web.stage.careermaps.co.uk/ this site it redirect us to on this URL : https://authserver.stage.careermaps.co.uk/Error?httpStatusCode=400

We have modified table [OpenIddictApplications] with live URLs as well :

For our web app :

GTCManagement_Web: PostLogoutRedirectUris : ["https://web.stage.careermaps.co.uk/signout-callback-oidc"] RedirectUris : ["https://web.stage.careermaps.co.uk/signin-oidc"] ClientUris : https://web.stage.careermaps.co.uk/

For our swagger app : GTCManagement_Swagger: PostLogoutRedirectUris :NULL RedirectUris : ["https://host.stage.careermaps.co.uk/swagger/oauth2-redirect.html"] ClientUris : https://host.stage.careermaps.co.uk

Don't know if anything needs to change for AUTH server.

Please help us or share some direction to resolve this, we are using redis cloud here.

Steps to reproduce:

  1. open https://web.stage.careermaps.co.uk/
  2. It will redirect to https://authserver.stage.careermaps.co.uk/Error?httpStatusCode=400

All URLs : https://authserver.stage.careermaps.co.uk/ https://web.stage.careermaps.co.uk/ https://host.stage.careermaps.co.uk


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

    hi

    You can send your project to liming.ma@volosoft.com

  • User Avatar
    0
    isteer created

    Hello, Project zip shared over email, Kindly have a look, And please help us today to resolve these issues, we need to deliver today, kind of very urgent. Will really appreciate your support and time

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I will check it asap.

  • User Avatar
    0
    isteer created

    Hoep you were able to check project at your end. Let me know if any meeting/call required. And please update if you have any potential updates on this.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi It seems the token problem. please add the below code to index.cshtml your web project, then republish web website

    <p>
        @(await HttpContext.GetTokenAsync("access_token"))
    </p>
    

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    btw, your application working on my local.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please clear the Redis cache after published. Thanks

  • User Avatar
    0
    isteer created

    Okay, Just now I deployed the application and have the same thing as we had before. Do we need to clear the redis cache every time we deploy the application? I will update you once redis cache cleared. but right now same results.

    And yes working absolutely fine locally.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share logs(Logs.txt) of the three applications. liming.ma@volosoft.com

  • User Avatar
    0
    isteer created

    Logs shared over email

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the logs of Authserver and web?

    The log that you shared seems incomplete.

  • User Avatar
    0
    isteer created

    I shared logs from staging site only, not incomplete. Yet I shared another copy again. Kindly check

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi https://us05web.zoom.us/j/89923264638?pwd=VDBUakd3ZXAxWGgvcmJVZjdiQ1Rldz09

    <p>
       @{
            var applicationConfigurationClient = HttpContext.RequestServices.GetRequiredService<ICachedApplicationConfigurationClient>();
            var applicationConfiguration = await applicationConfigurationClient.GetAsync();
            var json = JsonSerializer.Serialize(applicationConfiguration, new JsonSerializerOptions()
            {
                WriteIndented = true
            });
       }
    
       @json
    </p>
    
  • User Avatar
    0
    isteer created

    Please let me in the meeting, joined

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The meeting was closed by zoom because of the time, I will study it for a while, and I will reply you asap.

  • User Avatar
    0
    isteer created

    Thank you so much for your time and support, Let us also know if we need to relook into some settings or configurations. I will be very thankful to you if we were able to close it today, as I have demo planned with another client later tonight.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I sent you a test class. Please reproduce the problem and share the log. I will continue to analyze the log.

  • User Avatar
    0
    isteer created

    Hello,

    Have added test class and redeployed to staging, now web site is not running getting 500 error and I sent copy of log error as well to you. Kindly check

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I sent the new class.

  • User Avatar
    0
    isteer created

    okay deploying

  • User Avatar
    0
    isteer created

    Done deploying, and also sent you logs, site is running now but very slow.

  • User Avatar
    0
    isteer created

    Also the main issue of not displaying all our pages and menus still there

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    i think i got it.

    https://us05web.zoom.us/j/84760919308?pwd=NndUeVhmSlBJL3ZIdk91dWdsSkg3UT09

  • User Avatar
    0
    isteer created

    Maliming, thank you so much for your kind support and help us to resolve this issue, really appreciate it. You are genius :-)

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