Questions tagged as 'asp.net-identity'

1
answer

How to translate error messages from validation summary errors asp .net?

I do not find a file that brings me the error message strings to be translated, annotation is fine, only those that bring more complex errors, such as    Passwords must have at least one digit ('0' - '9').     
asked by 21.10.2015 / 17:05
1
answer

Global FIlter in MVC 5 is not working

Hello. I'm following the tutorial below with the intention of better understanding the .net Identity authentication process with OWIN. link When accessing Home, it should redirect to the auth / login and this is not happening. It's as if...
asked by 22.09.2014 / 22:39
1
answer

RegularExpression only letters in the Model

Using the following RegularExpression in Model: [RegularExpression(@"^\d+$")] public int ano_da_configuracao { get; set; } I get the following result: Itriedthefollowingwaytoacceptonlyletters:[RegularExpression(@"/^[A-ZÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ ]+...
asked by 11.02.2015 / 18:21
1
answer

How do I create an NxN relationship in the IdentityRole class with a class I created?

I have an automatic mapping of Controllers and its Actions that I execute at application startup (file Global.asax ). I use this to give the user permission to the given Controller x Action if he has that combinatio...
asked by 30.09.2014 / 00:46
1
answer

Can I edit customize the Identity AspNetUsers table?

I have a project that has a USUARIOS table. And now we are migrating to AspNet.Identity which already has a table but called AspNetUser and with its own fields. And my USUARIOS table has relationships with People and...
asked by 14.11.2017 / 12:12
1
answer

Error logging in using Facebook

Attempting to log in via facebook I come across with the following error:    Server Error in Application '/'.   Object reference not set to an instance of an object.   Description: An unhandled exception occurred during the execution of the  ...
asked by 23.01.2017 / 21:05
1
answer

What is the correct way to legitimize a given user through Identity with web service Soap?

Initially I tried to add snippets that are related to identity and I used the Find method with password and login, but I did not succeed. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Ser...
asked by 11.12.2015 / 20:46
1
answer

How not to lose the data included in the Claims in the revalidations of Cookies?

I have an application that I need to control the access of the users that are according to the profile of each one. Empresa , Filial . In the User entity I have added the fields referring to these two other entities and in them w...
asked by 29.09.2015 / 15:32
1
answer

What is the correct way to declare the following class structure and get its behavior from EntityFramework?

I have the following class structure: public class Revenda { [InverseProperty("Revenda")] public virtual ICollection<UsuarioRevenda> Usuarios { get; set; } } public class Empresa { [InverseProperty("Empresa")] public v...
asked by 30.09.2014 / 23:30
1
answer

Data access in DAL with ASP.Net MVC Identity and Owin

Today my solution has an MVC 5 Web application project and a Data Access Layer (DAL) Library with EF DatabaseFirst. I want to create a layer with MVC Identity + Owin, however, I would like data access to be made in the DAL. How do I do thi...
asked by 25.09.2014 / 18:16