locked
Identity Manager - Where to store application id? RRS feed

  • Question

  • User521171331 posted

    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.

    Monday, September 5, 2016 2:50 PM

Answers

  • User-491950272 posted

    Greetings,

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 5, 2016 8:05 PM

All replies

  • User-491950272 posted

    Greetings,

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 5, 2016 8:05 PM
  • User521171331 posted

    oh ok thanks.

    Wednesday, September 7, 2016 3:55 AM