Use mojo Authentication System in Other web app

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.
2/13/2014 4:49:35 AM
Gravatar
Total Posts 108
Community Expert

Use mojo Authentication System in Other web app

Hi Joe I have a custom app that resides below my mojoportal installation something like:  mydomain.com --> this is the mojoportal site and mydomain.com/mycustomapp --> this is my app

I want to use mojo authentication for my custom app, so the transition between mojo and my app was seamless to users, i need not only the username but also a couple of custom profile properties that I store in mojo.

I read a couple of days about this and came out with some ideas, but I want to know what you think about it.

1. I can enable Cross App Redirects for make my app use mojo authentication cookie (In this case I dont know how to insert the code needed for the redirection in a menu link in mojo)

2. Pass the user and psw in the url redirect and make my app call the mojo Authentication service. (this work but I dont feel well passing this data in a url  query)

3. Create my own SingleSignOne service and pass in the redirect link a code that I store in the user properties and  use that code in my service to validate if the user is valid.

 

Thanks in advance for you advice

 

 

2/13/2014 11:39:39 AM
Gravatar
Total Posts 18439

Re: Use mojo Authentication System in Other web app

Hi German,

I think you can make the mojoportal authentication cookie be recognized by the sub app assuming it is a .NET app, by making the machine keys and some forms auth settings match in the web.config file of the sub app, with a cookie path of / in both

Of course it depends on what the app is and whether it has its own users represented in its own db. If it needs to have the auth coookie user name match a user in its own db to work correctly then a more complex solution may be needed.

Hope that helps,

Joe

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