Open Closed

User authentication issue (IIS hosting) #242


User avatar
0
vishalnikam created
  • ABP Framework version: v2.7.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

User isAuthticated false flag

This issue happens, when i hosted all services in IIS (http only). I am getting bearer token but not user authentication flag.

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

6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    See https://support.abp.io/QA/Questions/144/Abp-Ver-262-Error-when-hosting-on-IIS-8

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

    same issue even after https hosting for identity server.

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

    hi,

    you need to be running your all ABP websites on HTTPS. In the default configuration of IIS, you cannot host a localhost website on IIS (needs some extra procedures).

    See https://stackoverflow.com/questions/8169999/how-can-i-create-a-self-signed-cert-for-localhost/48790088#48790088

    But for Identity Server, I guess you have to have a valid public domain running on HTTPS. "localhost" is not a reachable domain to be over internet to verify anything

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

    In that case, how would i setup the applicaion in my local enviormnet as i dont have public domain and SSL certificate.

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

    Hi,

    You can set RequireHttpsMetadata property value to false;

    • For host application:

    • For angular application:

    • IIS:

    Now , works fine.

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

    Yes it worked. thanks a lot

    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 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.