我需要一种方法来检查“允许匿名”是否在控制器操作中打开/关闭。是否来自控制器属性,动作属性
[允许匿名]
或者在 MvcOptions 中设置为过滤器
opts.Filters.Add(new AllowAnonymousFilter());
是否可以?
c# authentication .net-core asp.net-core
.net-core ×1
asp.net-core ×1
authentication ×1
c# ×1