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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    hi

    please share the logs of these three websites.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

    hi

    please share the logs of these three websites.

    Hello Please find attached logs here

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

    Logs sent over email

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

    Have joined meeting

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    liming.ma@volosoft.com

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

    You can test with admin user with default admin password

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    isteer created

    Hello Team any updates please

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I will reply asap. thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.