Top "Asp.net-authorization" questions

Authorization determines whether an identity should be granted access to a specific resource.

How to specify root (/) location in web.config?

How does one specify root location in web.config to allow unauthenticated users access it? The root location is served …

asp.net web-config asp.net-authorization
How to lock down paths in ASP.NET MVC?

I'm playing around with MVC 4 for the first time to check out what's been changed/added/etc compared to MVC 3. …

asp.net-mvc web-config forms-authentication asp.net-authorization
MVC 4 AuthorizeAttribute.HandleUnauthorizedRequest ViewResult - infinite loop

i've stepped through my code a million times and can't find a problem with my implementation.. in custom AuthorizeAttribute i …

asp.net-mvc asp.net-mvc-4 asp.net-authorization
ASP.NET MVC How to create a custom role provider

Being relatively new to ASP MVC, I'm unsure which would better suit my needs. I have built an intranet site …

asp.net asp.net-mvc asp.net-mvc-5 windows-authentication asp.net-authorization
MVC Core How to force / set global authorization for all actions?

How to force / set global authorization for all actions in MVC Core ? I know how to register global filters - …

asp.net-core-mvc authorize-attribute asp.net-authorization
Allow only anonymous users via web.config authorization

I want to use authorization in the web.config to block access to SignUp.aspx to authenticated users. It cannot …

asp.net asp.net-authorization role-base-authorization
How can I implement Claims-Based Authorization with ASP.NET WebAPI without using Roles?

I have an ASP.Net WebAPI 2 Application that uses Claims. The claims are stored as two additional columns in a …

asp.net asp.net-mvc asp.net-web-api asp.net-identity-2 asp.net-authorization
Refit and authorization header

Currently, I am adding an authorization header to my request like this: File: SomeFile.cs public interface ITestApi { [Get("/api/…

c# asp.net-authorization refit
Custom Bearer Token Authorization for ASP.Net Core

Is this an acceptable implementation of a custom bearer token authorization mechanism? Authorization Attribute public class AuthorizeAttribute : TypeFilterAttribute { public AuthorizeAttribute(): …

c# asp.net-core bearer-token asp.net-authorization