简体   繁体   English

使用 ADFS 授权对 ASP.NET Core 2.1 应用程序的请求

[英]Authorize requests to ASP.NET Core 2.1 application using ADFS

I have an ADFS server.我有一个 ADFS 服务器。

I added a Relying Party Trust based on this documentation: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/ws-federation?view=aspnetcore-2.1我根据此文档添加了信赖方信任: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/ws-federation?view=aspnetcore-2.1

Now I want to build an ASP.NET Core 2.1 application that will be published as a self contained Linux-x64 application.现在我想构建一个 ASP.NET Core 2.1 应用程序,它将作为一个独立的 Linux-x64 应用程序发布。

The application is intended to be a single page JS and React application which will be viewed by users connected to the domain configured on the ADFS server mentioned above.该应用程序旨在成为单页 JS 和 React 应用程序,连接到上述 ADFS 服务器上配置的域的用户将查看该应用程序。

I want that users connected to that domain to be automatically authorized to display the main page and all users from outside the domain to have to authenticate themselves before they can access the page.我希望自动授权连接到该域的用户显示主页,并且域外的所有用户都必须先进行身份验证,然后才能访问该页面。

How do I configure the ASP.NET Core application in order to achieve that goal?如何配置 ASP.NET 核心应用程序以实现该目标?

Integrated windows auth (IWA / WIA) achieves this. 集成的 windows auth (IWA / WIA) 实现了这一点。

This is browser functionality.这是浏览器功能。

This only works for domain joined PC.这仅适用于加入域的 PC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 授权属性在 JWT 和 asp.net 核心 2.1 中不起作用 - Authorize attribute is not working in JWT and asp.net core 2.1 ASP.NET Core使用ADFS中的范围来授权对Web API的访问 - Asp.NET Core use scopes from ADFS to authorize access to web api 如何在ASP.NET Core 2.1应用程序中注册类型化HttpClient - How to register a Typed HttpClient in a ASP.NET Core 2.1 application Asp.net Core 2.1 将 AzureAd 身份验证承载传递到使用 [Authorize] 的 Web Api - Asp.net Core 2.1 Pass AzureAd Authentication Bearer to Web Api which uses [Authorize] Rider freez 与 ASP.NET Core 2.1 应用程序 - Rider freez with ASP.NET Core 2.1 application 重新加载/重新启动ASP.NET Core 2.1 Web应用程序 - Reload/Restart ASP.NET Core 2.1 web application 记录器未显示在ASP.NET Core 2.1应用程序中 - Logger not showing in ASP.NET Core 2.1 Application 无法将 ASP.NET Core 2.1 Angular 应用程序部署到 Azure - Unable to Deploy ASP.NET Core 2.1 Angular Application To Azure ASP.Net Core 2.1/WebAPI 应用程序:“未找到 HTTP 404”使用 [授权] 调用 REST url - ASP.Net Core 2.1/WebAPI app: "HTTP 404 not found" calling a REST url with [Authorize] ASP.NET Core 2.1如何确定没有授权属性的声明? - ASP.NET Core 2.1 How to determine Claims without Authorize Attribute?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM