Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
在 FlulClient 中禁用自动重定向
我在用FlulHttp http tmenier github io Flurl fluent http 我想禁用某些 API 调用的AllowAutoRedirect 我知道如何让 System Net Http HttpClient 不
redirect
dotnethttpclient
aspnetcorewebapi
flurl
ASP.NET Core:是否可以使用HttpClient获取文件并直接返回?
我有一个内部 API 可以获取并返回文件结果 但是 此 API 没有任何身份验证 角色 权限检查的概念 并且无法修改以执行此操作 我想在现有的 ASP NET Core 2 Web API 上创建一个 Web API 端点来进行权限检查 调
c
aspnetcore20
aspnetcorewebapi
MediatR 我何时以及为什么应该使用它? [关闭]
Closed 这个问题需要多问focused help closed questions 目前不接受答案 以前可能有人问过 但我什至在官方网站上也找不到为什么我应该使用 MediatR 以及它解决了哪些问题 是因为我可以在构造函数中传递单个
c
aspnetcorewebapi
architecturalpatterns
隐藏 Web API 响应的属性
我想隐藏Modifiedby Modifieddate and Createddate来自 Web API 响应的属性 我尝试使用 JsonOgnore IgnoreDataMember 但没有工作 ModelMetadataType ty
c
aspnetcorewebapi
如何在asp .net core web api中获取后台服务中的主机URL?
我有一个 Asp Net core Web api 它将运行后台服务来每天安排一些任务并发送一些邮件 在邮件中我需要有 api 的 url 除了控制器之外 还有什么方法可以在后台服务中获取主机 URL 后台服务在 Web 请求的范围之外运行
ASPNETCore
NetCore
aspnetcorewebapi
为什么在基于 Identity Cookie 的身份验证中一段时间后 User.Identity.IsAuthenticated 设置为 false
我正在使用 EF core 在 asp net core 2 0 中开发 API 我已经在中配置了身份cookie身份验证startup cs如下 services ConfigureApplicationCookie options gt
c
cookies
aspnetidentity
aspnetcore20
aspnetcorewebapi
ASP.net core web api:使用 Facebook/Google OAuth 访问令牌进行身份验证
几天来 我一直在尝试通过 Google 和 Facebook 进行 OAuth 身份验证 以便在我的 ASP net core Web api 项目中工作 我目前的状态是 我有一个 ASP net core Web Api 项目 其中需要对
c
angular
authentication
googleoauth
aspnetcorewebapi
FromHeader Asp.NET Core 绑定到默认值
我正在使用以下基本控制器测试 Asp Net core WebApi Route test public class TestController Route mult HttpGet public int Multiply int x i
c
aspnet
Binding
httpheaders
aspnetcorewebapi
获取 .NET Core JSON Body 作为动态对象
我的 ASP NET Core 端点接受 JSON 形式作为其输入 并调用需要动态参数的方法 我试图像这样调用该方法 HttpPost public IActionResult InitializeAction FromBody dynam
ASPNETCore
aspnetcorewebapi
ASP.NET Core Web API:捕获路由错误
我正在尝试捕获 ASP NET Core Web API 项目中的路由错误 具体来说 路由错误是指 在控制器中我只有 GET api values 5 HttpGet id public string Get int id return v
aspnetwebapi
ASPNETCore
aspnetcoremvc
aspnetcorewebapi
不知道如何注入 LinkGenerator
所以我知道如何设置我的控制器 以便我可以接受注入到控制器中的 LinkGenerator 我不明白的是如何在启动时使用 LinkGenerator 注入控制器 控制器 protected readonly LinkGenerator lin
NetCore
aspnetcorewebapi
Asp.net Core 模型绑定器接受布尔类型的随机整数
鉴于模型具有布尔属性 public class Person public string Name get set public bool IsMale get set 当尝试发布以下有效负载时 name Bob isMale 12345
ASPNETCore
aspnetcorewebapi
modelbinding
为什么当我们创建新的 Web APi 服务时,.NET Core 中的 Web API 的身份验证类型 - 个人用户帐户不可用
为什么无法创建具有个人用户帐户授权类型的 Web API 项目 UPDATE 所有版本号均从 v1 2 更新为 v2 0 请找到ASP NET Core 时间表和路线图 https github com aspnet Home wiki R
ASPNETCore
aspnetwebapi2
aspnetcorewebapi
使用 Angular SPA 应用程序与 IdentityServer4 进行身份验证/授权接收令牌,然后与 Web API 进行对话
我有一个 asp net core Web API 我目前正在使用 Angular 4 应用程序直接调用它 我现在想添加身份验证和授权层 我想通过向我的解决方案添加另一个类型为 ASP NET Core MVC 带个人用户帐户 的项目 严格
angular
ASPNETCore
aspnetidentity
IdentityServer4
aspnetcorewebapi
.NET Core AWS RDS 连接
我正在 Amazon AWS Elastic Beanstalk 上创建一个 NET Core Web API 我正在尝试添加数据库 但他们的添加数据库指南不适用于 Net Corehttp docs aws amazon com elas
c
amazonwebservices
NetCore
amazonrds
aspnetcorewebapi
在 Asp.Net Core Web API 中使用 MassTransit 消息时如何对用户进行身份验证?
我有几个使用 Bearer 身份验证的 Asp Net Core Web APIIdentityServer4 AccessTokenValidation用于内省令牌 验证用户身份并创建声明的中间件 这对于 HTTP 请求来说效果很好 我正
c
authentication
aspnetcorewebapi
masstransit
dotnet core 3.1 中 CORS 响应预检的问题
我面临这个问题 访问 XMLHttpRequest 位于 http localhost 5000 api surpactemp http localhost 5000 api surpactemp 从原点 http 本地主机 4200 ht
c
angular
ASPNETCore
NetCore
aspnetcorewebapi
在 Web API ASP.NET Core 中检查 api 密钥的简单方法
我想简单地检查 Api 密钥 在授权标头中发送 然后再允许某些 Web API 端点受到攻击 为了解决这个问题 我们假设 ApiKey 是12345 我只想在到达特定操作方法之前检查此 Api Key 的值 我无法弄清楚这是否需要自定义 A
如何将事件记录到 ASP.NET Core Web API 中的事件查看器?
我正在尝试登录到托管在 Windows Server 2016 Standard 上的 ASP NET Core 2 1 Web API 中的事件查看器 我的控制器中有这个 private readonly ILogger
ASPNETCore
logging
NetCore
aspnetcorewebapi
如何使用 ASP.NET Core MVC 和 Angular 使用 Identity Server 4 连接到 Web API
我在收到回复后写信在这里发帖 https github com IdentityServer IdentityServer4 issues 1179 issuecomment 304032678 我正在开发一个应用程序 该应用程序具有一个
angular
ASPNETCore
IdentityServer4
aspnetcorewebapi
«
1
2
3
4
5
6
7
8
...10
»