Last post Jan 29, 2017 12:11 PM by PatriceSc
Jan 25, 2017 04:51 AM|Vinay Kiran S|LINK
I have an intranet project written in MVC 5 which uses Windows Authentication to authorize and authenticate users.
I need to add a 'Login as another user' functionality. So please guide me about this......
Jan 25, 2017 03:06 PM|bruce (sqlwork.com)|LINK
Jan 25, 2017 03:15 PM|PatriceSc|LINK
Users should be told to use "run as" to log under another windows account (another browser than IE should show a logon dialog by default). Another option would be to have some kind of delegation ie rathing than having to log using another user account to
access some information, to get access to this information directly from your account. For example sharing a calendar with users so that they can see at least some partial information about your meetings etc... Not sure what is your use case...
Jan 27, 2017 04:39 AM|Vinay Kiran S|LINK
Can you please explain me in detail how to achieve it...
Jan 27, 2017 04:48 AM|Vinay Kiran S|LINK
I want my application to ask for re-entering of employee's credential when he clicked on a SignInAsDifferentUser button.
How can I then prompt again for their user credentials, through a 'sign in as different user' link , showing the browser prompt rather than a Web Form?
Since SharePoint offers this functionality, I assume is there a way to do this through code, but I don't know what code can do this (using C#).
Jan 29, 2017 12:11 PM|PatriceSc|LINK
See perhaps https://msdn.microsoft.com/en-us/library/ms972958.aspx (never tried)
If only few users need that you could use
Also double check your use case. It means an employee needs to know the Windows login for other employees to carry out some tasks for them? It seems it would be better if an employee could grant explicitely another employee to do some actions for him. Depending
on why it is needed you could also impersonate the other account just the time needed for this hopefully small operation. As often it might be easier to help and perhaps to suggest another simpler approach if we know why a user needs to pretend to be someone