Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should appsettings.json be used instead of Web.Config? #33529

Closed
Rod-at-DOH opened this issue Sep 4, 2024 · 4 comments
Closed

Should appsettings.json be used instead of Web.Config? #33529

Rod-at-DOH opened this issue Sep 4, 2024 · 4 comments
Assignees
Labels
aspnet-core/svc mapQuest clean move security/subsvc seQUESTered Identifies that an issue has been imported into Quest. Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@Rod-at-DOH
Copy link

Rod-at-DOH commented Sep 4, 2024

Description

In the IIS section it recommends adding Windows Authentication configuration details in the Web.Config file. However, the Web.Config file has been replaced by the appSettings.json file. So, should the documentation for IIS use appSettings.json instread?

Page URL

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-8.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/windowsauth.md

Document ID

fbc36c26-9992-1f4c-66d3-02f898ee7ec4

Article author

@Rick-Anderson


Associated WorkItem - 321218

@Rick-Anderson Rick-Anderson self-assigned this Sep 5, 2024
@Rick-Anderson Rick-Anderson added reQUEST Triggers an issue to be imported into Quest and removed ⌚ Not Triaged labels Sep 5, 2024
@Rick-Anderson
Copy link
Contributor

However, the Web.Config file has been replaced by the appSettings.json file.

Not for the ANCM and IIS. Where did you read that?

@Rod-at-DOH
Copy link
Author

Rod-at-DOH commented Sep 5, 2024

@Rick-Anderson , I read it on this page: https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/windowsauth.md where it says:

IIS uses the ASP.NET Core Module to host ASP.NET Core apps. Windows Authentication is configured for IIS via the web.config file. The following sections show how to:

Provide a local web.config file that activates Windows Authentication on the server when the app is deployed.
Use the IIS Manager to configure the web.config file of an ASP.NET Core app that has already been deployed to the server.

@Rick-Anderson
Copy link
Contributor

@Rick-Anderson , I read it on this page: https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/windowsauth.md where it says:

IIS uses the ASP.NET Core Module to host ASP.NET Core apps. Windows Authentication is configured for IIS via the web.config file. The following sections show how to:
Provide a local web.config file that activates Windows Authentication on the server when the app is deployed.
Use the IIS Manager to configure the web.config file of an ASP.NET Core app that has already been deployed to the server.

That's correct, but it doesn't mention appsettings.json

@Rod-at-DOH
Copy link
Author

Thank you, @Rick-Anderson. It is now my understanding that Blazor doesn't have a Visual Studio project template that works with Windows Authentication for an Intranet application. That instead what I need to do, if I use a Blazor Visual Studio project template, is to specify None for authentication with the Blazor Server template (or the Blazor Web App VS project template), then add in the Windows Authentication code into a Web.Config file. I'm not exactly sure how to do that, but that seems to be the correct approach. If I'm wrong, please correct me.

@tdykstra tdykstra added the mapQuest clean move label Oct 6, 2024
@sequestor sequestor bot added seQUESTered Identifies that an issue has been imported into Quest. and removed reQUEST Triggers an issue to be imported into Quest labels Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aspnet-core/svc mapQuest clean move security/subsvc seQUESTered Identifies that an issue has been imported into Quest. Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Development

No branches or pull requests

4 participants