Questions tagged as 'asp.net-identity'

0
answers

Automatic log out in Asp.Net Core

I'm using identity in an ASP.NET CORE project, however I'm having trouble uploading the project into production. When doing a POST it sends my information normally, but when changing pages and sending another POST, the system logs out. Done a...
asked by 23.08.2018 / 16:27
0
answers

Foreign key Identity EF

I have the following class of UserData and I want to use the User ID generated in Identity EF as foreign key. How do I pull this data, which I'm doing with Migration. namespace AgendaWeb.Domain.Users { public class UserData {...
asked by 12.08.2018 / 21:59
0
answers

Not getting the correct User ID core.net

I'm using ASP.NET CORE 2.0, and I'm having to get the user ID logged in. This is my Account Controller: [Route("[controller]/[action]")] public class AccountController : Controller { private readonly SignInManager<ApplicationUser> _s...
asked by 12.07.2018 / 14:11
1
answer

Logoff after editing a User Role

I'm working on an asp.net-mvc project and would like to force the user to log off after editing a role belonging to the user, using asp.net-identity public async Task<ActionResult> Edit(string id) { if (id == null) {...
asked by 18.06.2018 / 18:30
0
answers

Write a list with entity framework

I need to register a group that has a friends list. My code: [Table("Grupos")] public class Grupo { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } public string IdNome { get; set; }...
asked by 18.06.2018 / 18:02
1
answer

Use Identity with existing bank

I'm migrating from a system to asp core, but the system currently has its login logic done in the procedure, my question is, is it possible to use only the authorization of Identity (Roles)? I found doing with existing database).     
asked by 05.06.2018 / 21:41
0
answers

Edit view for the AspNetUserClaims table

Hello, I'm starting now with the ASP.NET Identity Framework and I need an edit view for the type and value of a claim. For example, a user must have Administrator and the Active value in order to access Managed Actions, but if it does no...
asked by 22.05.2018 / 23:05
1
answer

Integration AD Identity x Azure AD x ADFS

I have an application with database authentication using OWIN and Identity. One customer requested single sign on with ADFS on premisse. I did it directly through OWIN, but the client requests a federation url (with metadata), which I do not own...
asked by 10.04.2018 / 14:19
0
answers

Asp.Net Identity stopped authenticating after changing the String Id to Int

I'm developing a system using AspNet Identity, I decided to change the primary key type of string to int, so far so good, the application is registering the right user, but when I log in is not authenticating the user, also no error, just return...
asked by 13.03.2018 / 15:49
0
answers

Translate Asp.Net Identity User Validations

I am using ASP.NET Identity to control the authentications in my application, the possible validations with DataAnnotation I am already doing however all the validations are in the standard in English and I would like to be able to translate the...
asked by 07.03.2018 / 20:16