简体   繁体   中英

My Blazor Server App Windows Authentication works when I open the page on the server. When page opened on another domain PC, credentials are not asked

I have activated in the Project properties "Enable Windows Authentication" When I open my pages on a browser in the server (where my app is hosted) then credentials are asked, that means working fine. But when I open my pages on another PC in the same intr.net domain, no login Window appears. The pages are opened directly. What is missing in my project settings? My app is hosted in IIS

web.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
  <handlers>
    <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
  </handlers>
  <aspNetCore processPath="dotnet" arguments=".\WebApplication7.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM