Açık Kapalı

User authentication issue (IIS hosting) #242


User avatar
0
vishalnikam oluşturuldu
  • 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 Cevap
  • User Avatar
    0
    liangshiwei oluşturuldu
    Destek Takımı Fullstack Developer

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

  • User Avatar
    0
    vishalnikam oluşturuldu

    same issue even after https hosting for identity server.

  • User Avatar
    0
    alper oluşturuldu
    Destek Takımı 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 oluşturuldu

    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 oluşturuldu
    Destek Takımı 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 oluşturuldu

    Yes it worked. thanks a lot

Made with ❤️ on ABP v8.2.0-preview Updated on Mart 25, 2024, 15:11