Questions tagged [asp.net-authorization]

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

Authorization determines whether an identity should be granted access to a specific resource. In ASP.NET, there are two ways to authorize access to a given resource:

  • File authorization File authorization is performed by the FileAuthorizationModule. It checks the access control list (ACL) of the .aspx or .asmx handler file to determine whether a user should have access to the file. ACL permissions are verified for the user's Windows identity (if Windows authentication is enabled) or for the Windows identity of the ASP.NET process. For more information, see ASP.NET Impersonation.
  • URL authorization
    URL authorization is performed by the UrlAuthorizationModule, which maps users and roles to URLs in ASP.NET applications. This module can be used to selectively allow or deny access to arbitrary parts of an application (typically directories) for specific users or roles.
365 questions
-1
votes
1 answer

MVC Authorize Redirect to Another Url

I use WebMatrix.WebData; In my MVC project, inside controller I wrote this line of code: [Authorize(Roles ="Members")] When login fails, it will redirect my application to Home/Login. But I want to redirect to Home/Register. How can I do this?
-1
votes
1 answer

How to make a web api service authenticated using AZURE

I am having two projects under one solution. one is for UI which is MVC and another one is WEB API service. I want to make the WEB API service to be authenticated as well as authorized during the call from the UI project inside the WEB API…
-1
votes
1 answer

What parts of default authorization template can I safaly delete?

I want to make the simplest authorization on my website including user roles. The default template is too complex for me. I don't need external login and other stuff. What are the core parts that my project should contain?
micnyk
  • 702
  • 6
  • 22
-1
votes
2 answers

ASP MVC 4 User logout after each request

I'm working on Asp Mvc 4 project that is working very good on my development system, it's also working very good on my demo hosting server. But when i upload site on client's server it ask for log in on each page. and when i log in on one page i can…
-1
votes
1 answer

how best to manage manage members and roles in a .NET application

I realise this question probably doesn't suit the Q&A format of SO, though I figured this is by far the best community to provide some insight into this. What is the difference between Forms Authentication, MembershipProvider,…
-4
votes
2 answers

ASP.Net Core 2.2 - Method overload appears in Visual Studio but does not work at run-time

I am attempting to verify that a user is authorized via a custom policy. I followed the tutorial at Ode To Code to add this functionality to my controller. From within Visual Studio, the code appears to be correct and utilizing a known…
Eric K
  • 630
  • 8
  • 25
1 2 3
24
25