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.


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

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

  • User Avatar
    0
    vishalnikam created

    same issue even after https hosting for identity server.

  • 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

  • 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.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can set RequireHttpsMetadata property value to false;

    • For host application:

    • For angular application:

    • IIS:

    Now , works fine.

  • User Avatar
    0
    vishalnikam created

    Yes it worked. thanks a lot

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