Passing an administrator password between projects RRS feed

  • Question

  • My solution is currently structured as a WinForms EXE as the main project with 3 DLLs (classes, custom controls, and dialogs) which support it. What I need to do is securely pass around an administrator password to various dialogs in the dialog DLL to make sure that certain functions only happen with appropriate authorization. Is there a simple secure way to do this short of manually passing the encrypted administrator password to each dialog that needs it?
    Tuesday, August 7, 2018 3:21 AM

All replies

  • Most would use some kind of role base security based on the user with their user-id  and psw logging into the application and using their assigned role.

    Tuesday, August 7, 2018 3:31 AM
  • A quick read looks perfect. Will delve in more, thanks much.
    Tuesday, August 7, 2018 3:35 AM
  • Permissions should be tied to the user running the app. You have access to that via the IPrincipal interface. From here you can get the user's IIdentity and the role(s) they are in. For a normal app this will be the Windows groups. But you can create your own login and security system if you want and then use application roles. Depends upon how complex you want to be. 

    Irrelevant, use the user information not password information to authorize users.

    Michael Taylor

    Tuesday, August 7, 2018 1:44 PM