Most voted "forms-authentication" questions
Forms Authentication is a user authentication architecture developed for ASP.NET.
Learn more…12 questions
Sort by count of
-
7
votes1
answer1103
viewsAsp.Net MVC authentication using Formsauthentication
I am implementing authentication in my ASP.NET MVC application. I am using FormsAuthentication for this authentication of each user and for each logged in user 5 Sessions are assigned (Name,…
-
6
votes3
answers647
viewsAuthorization of users to actions using the Authorize attribute
I put the [Authorize] in my controllers and I inserted this code: <authentication mode="Forms"> <forms loginUrl="/Login/Login" /> </authentication>` For whenever the 401 code…
-
2
votes1
answer316
viewsUnique authentication for multiple projects using Entity Framework
Currently in my Solution I have several ASP.NET web projects, each with the default authentication code of the Entity framework MVC (there are small customizations in the entities only). Projects…
asp.net-mvc entity-framework login forms-authenticationasked 7 years, 8 months ago Guilherme Ramos 35 -
2
votes1
answer378
viewsHow to redirect user to a specific page after login
I am able to login by type of user: administrator or common. And I am using: [Authorize(Roles = "Administrator")] and [Authorize(Roles = "Common")] Inside the controllers I want to restrict by type…
c# asp.net-mvc login authentication forms-authenticationasked 6 years, 2 months ago Rodrigo Santos 159 -
1
votes1
answer182
viewsFormsauthentication causes an infinite redirect error - ASP.NET C#
Good afternoon, I am developing an ASP.NET application with C# that requires login, works and is being used this way: protected void Page_Load(object sender, EventArgs e) { SqlConnection conn = new…
c# asp.net visual-studio-2015 sql-server-2012 forms-authenticationasked 8 years, 8 months ago Kawaii 151 -
1
votes2
answers143
viewsHow to disable Forms Authenitcation for the Web API?
I have an Asp.Net MVC project and inside it has the Web Api, when a request sends an invalid token, Forms Authentication redirects to the login page, but I need it to only return an Http 401 error,…
c# asp.net-mvc asp.net-web-api web.config forms-authenticationasked 7 years, 10 months ago Fábio Lima 81 -
1
votes1
answer126
viewsASP.NET MVC Default Page
Guys I have an ASP.NET MVC app with FormsAutentication and I’m having a hard time leaving a controller as home page. I have already released on web.config, but it still doesn’t work. The controller…
-
0
votes2
answers381
viewsASP.NET MVC with Formsauthentication
I have an Asp.net MVC application with Formsauthentication, but the need arose to release a page for the visitor of the site or a page is released for everyone and the rest of the controllers falls…
-
0
votes1
answer43
viewsDjango - add user as team member in view
How to allow a user to register to already become a team member through their own view in Django? I tried it this way, but nothing happened. py views.: def cadastro(request): form =…
-
0
votes1
answer1023
viewsUse Forms Authentication in an ASP.NET Core application
I’m migrating a website ASP.NET Web Forms (.NET Framework 4.7) to ASP.NET Core (but still using the . NET 4.7 as "target framework") - the goal is to use Razor Pages, dependency injection and other…
-
0
votes1
answer474
viewsError executing login() 'Anonymoususer' Object has in attribute '_meta'
I’m trying to log into an account of Django to redirect to the main page of my project, but the command login returns me the following error. AttributeError at /login/ 'AnonymousUser' object has no…
-
-1
votes1
answer215
viewsReactive Forms Ionic 4, data call
I used ngModel to take data from an api and move to a form, where the user typed the zip code and obtained the data, but as it will be discontinued, I will switch to reactive Forms, now I’m having…