Questions tagged as 'asp.net-identity'

1
answer

You can pass the roles without using [Authorize (Roles="Role name")]

My system has dynamic roles ("groups"), the user that adds and places users in. Also arrow that if it can Insert, edit, delete, etc ... With the use of Asp.net Identity Roles, can you do this dynamically, without using "Role=", that is, wi...
asked by 22.08.2014 / 15:27
2
answers

How to solve error with OWIN?

Well friends, I've created an Asp.Net MVC web project with No Authentication , but now I'm in need of authentication. I'm following some tutorials like this to put authentication from scratch, but after installing EntityFramework an...
asked by 02.06.2015 / 15:57
1
answer

How to use multiple classes as User in Identity - Asp.Net Identity

I want to use 2 classes as User in Identity and I could not see this change in the code. Let's assume that I will use the default class "ApplicationUser" which generates an "AspNetUsers" table and I want to use another "Customers" table that...
asked by 09.02.2015 / 20:11
3
answers

Logout with Identity

I am trying to use the logoff function offered by default in Identity: // POST: /Account/LogOff [HttpPost] [ValidateAntiForgeryToken] public ActionResult LogOff() { AuthenticationManager.SignOut(DefaultAuthenticatio...
asked by 04.10.2017 / 19:58
2
answers

How can I do to get the insert in the log with logged in user? Identity - Asp.net core 2.0

I need to get the user logged in, to do an insert in the log, thus including which user included in the table, made change, and delete. I'm learning language, and I still have a lot of questions. This is my AccountController controller: pri...
asked by 10.07.2018 / 16:50
1
answer

Login with Identity in MVC 5

I'm using MVC 5 and Identity for Login. I have a User class and I want to login with it, using the properties of this class for example the Property registry (User) instead of UserName (IdentityUser). I have the User Class that inherits from...
asked by 18.09.2014 / 05:06
1
answer

How to check if my user is online asp.net identity?

I want to block it so I can not use the same login on multiple machines. So I need to know if it's online, how do I do this in asp.net identitty?     
asked by 15.07.2014 / 21:37
1
answer

Error logging into applications

Well, the scenario is as follows: I have 2 applications ASP.NET MVC in a same project, which is using a Dominio in common. I'll call MVC1 and MVC2 to get better at the sample. I've installed Identity ,...
asked by 15.12.2016 / 05:06
1
answer

Get specific login data via facebook

I'm looking to implement authentication via facebook . Where I want to get more public data. I already have the default authentication set up. But I need something more, because it just brings me the Email. I'm basing some answers o...
asked by 24.01.2017 / 14:18