Automatically Sign A User In

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.
7/13/2012 4:19:35 AM
Gravatar
Total Posts 4

Automatically Sign A User In

Hello people,

I'm working on a feature for our new site that allows us to manage a couple of databases for some existing applications of ours and to allow our clients to log in to see what services of ours they have access to. The login details for the clients are in their own database and we do NOT want to replicate all thousands of users into being mojoPortal users as well. Our solution for this was to create our own login widget which, once a user is authenticated they will be automatically logged in to mojoPortal as well as a standard mojo user called "ClientUser" who only have extra access to view pages with features I have created like "Change Client Password" and "View Your Services".

So far everything I have coded works great and I'm really happy with the way mojoPortal can be extended to allow us to do such things. The only problem is the Auto Sign In bit. I found the method "mojoPortal.Business.SiteUser.Login(SiteSettings siteSettings, string loginId, string password)" which I thought would perform a login but it only returns a users Login. I tried tracing the code for the mojoPortal login feature and either it is not very obvious how this works or I'm having a very bad day. How do I do this?

TL;DR: Could somebody let me know how I can sign a user into a fixed mojoPortal account automatically from my feature?

​Thanks in advance for any advice!

 - Matt

7/13/2012 8:11:54 AM
Gravatar
Total Posts 18

Re: Automatically Sign A User In

You need to write a FormsAuthentication cookie

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