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

    please share the logs of these three websites.

  • User Avatar
    0
    isteer created

    hi

    please share the logs of these three websites.

    Hello Please find attached logs here

  • User Avatar
    0
    isteer created

    How I can share logs as I can not attach log txt file and can not copy logs text as it is not allowing me to post big logs text.

  • User Avatar
    0
    isteer created

    Can we connect over call, so that I can demonstrate you and we can close it asap?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    How I can share logs as I can not attach log txt file and can not copy logs text as it is not allowing me to post big logs text.

    liming.ma@volosoft.com

  • User Avatar
    0
    isteer created

    Logs sent over email

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    'http://web.stage.careermaps.co.uk/signin-oidc' was not a valid redirect_uri for GTCManagement_Web. "redirect_uri": "http://web.stage.careermaps.co.uk/signin-oidc",

    it seems the url need to start with https

  • User Avatar
    0
    isteer created

    But in database we have updated https URLs only, also in application as well.

    Nowhere we have mentioned http URL

  • User Avatar
    0
    isteer created

    Can we identify from where it is picking HTTP URL as redirect_uri ?

  • User Avatar
    0
    isteer created

    Also not able to authorize host swagger application as well

    https://host.stage.careermaps.co.uk/swagger/index.html

    Client Secret Key : 1q2w3E*

    Take us to some login page

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The redirect_uri is base on current website user + signin-oidc

    Please try sign-in on https://web.stage.careermaps.co.uk/

    Also clear the redis after change URL in database.

    Take us to some login page

    This is expected behavior. It will back to the swagger page after sign-in.

  • User Avatar
    0
    isteer created

    Cache is flushed, but still getting internal server error once we are trying to login with admin credentials

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://us05web.zoom.us/j/83390348812?pwd=aDNWMDc3eWoxWlI0b3dkYVJPRDcvUT09

  • User Avatar
    0
    isteer created

    My system crashed 15 mins before, Can we connect now on the same link above?

  • User Avatar
    0
    isteer created

    Have joined meeting

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    liming.ma@volosoft.com

  • User Avatar
    0
    isteer created

    You can test with admin user with default admin password

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok.

  • User Avatar
    0
    isteer created

    Also Let me know if you need control at myside to check anything. I will be actively watching this ticket, In case if you want to see something in code.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks

  • User Avatar
    0
    isteer created

    Hello Team any updates please

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I will reply asap. thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The permissions of your project are wrong.

    Can you reproduce in locally? Can you share the project with me? liming.ma@volosoft.com

    The project

  • User Avatar
    0
    isteer created

    Hello @mailming

    Yes we were able to reproduce project locally and it is working as expected. Let me know how I can share project with you. You need me to share project zip file with you.

    Thanks, Ankit

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07