0
I still only use the FormsAuthentication
but I’m looking to migrate to the ASP.NET Identity
in MVC
.
In my current projects, I don’t work with roles
of FormsAuthentication
, and yes by permission of access by controller
and actions
where I save this data in a session
per logged-in user, for several reasons.
Currently when I log in, I use:
FormsAuthentication.SetAuthCookie('[email protected]', false);
In the blog of Eduardo Pires, has the article in this link which shows that we can use the ASP.NET Identity
with a custom nomenclature and shows that it is necessary to have all tables mapped used in the ASP.NET Identity
.
My doubts are:
- Can I map the tables using
Data Annotations
or I’ll have to useFluent API
? - As the current process is a normal registration, will with the
ASP.NET Identity
I can do the same process?