Login as different user while in admin mode but unable to get automatic authentication

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/19/2010 12:02:08 PM
Gravatar
Total Posts 13

Login as different user while in admin mode but unable to get automatic authentication

I have setup mojoportal such that  one client can have more than 1 site associated with it.

1 parent site - x child sites

However, each site has its own set of users. I have employee search page on parent site which can search employees (users) across parent site as well all its associated child sites. Each search result row has a link called "Login as Employee". When clicked, a new pop window is shown that goes to a custom page called - Impersonator.ashx?userId=x. This handler is responsible of validating the caller user (in this case, it has to be admin role type). Also, this handler knows what child site it is by evaluating userId and parentId against db stored procedure. I am able to succesfully display child site. However, I don't know what I need to do in order to automatically login this user (employee) into the child site with proper roles.

I can get username, password etc if I need to for that particular userId.

Thanks,

-bobsov

10/19/2010 9:46:26 PM
Gravatar
Total Posts 13

Re: Login as different user while in admin mode but unable to get automatic authentication

Got it figured out.

You must sign in to post in the forums. This thread is closed to new posts.