Last post Sep 07, 2016 03:55 AM by ngaisteve1
Sep 05, 2016 02:50 PM|ngaisteve1|LINK
Hi, I am new to identity manager. May I know where do I store application id? Example, I have an eLeave system and Payroll system. I just want to have a single User Management System (Single Login) to access to these two applications.
Sep 05, 2016 08:05 PM|Janshair Khan|LINK
If you want the eLeave and Payroll applications to access the same User Management System, then simply assign the same identity context to both applications. Moreover, if you want to get the id, then the class that is derived from IdentityUser class already
uses id that is generated uniquely for each user. To get that id, simple access the Id property of a particular user such as:
var result = UserManager.AddToRole(user.Id, "User"); //Getting the user id
Sep 07, 2016 03:55 AM|ngaisteve1|LINK
oh ok thanks.