Allow acces trough SMS API

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.
4/14/2014 11:31:35 AM
Gravatar
Total Posts 17

Allow acces trough SMS API

Hello,

I would like to allow users see content of a page trough a SMS API, I used the API before in custom websites
but would like to empliment it now in a Mojoportal CMS site.

The user gets a code on his Cellphone he must submit to acces the site so I can use the Formwizard Pro with
a custom formhandler to query the API, but I don't know how to achieve that a page can only be accesed after
the code is verified & correct and  this has to be also single session if the user close his browser access is denied again.

Hope I explaind well what I try to achieve, and anyone can give me a kickstart on this.

Thanks
Filip

4/14/2014 12:32:13 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Allow acces trough SMS API

If your business case allows for the 2 factor authentication to happen at the time of user sign in, you may be able to use a User Sign In Event Handler to process the code and either allow the authentication to happen or not. To achieve the single session requirement, you'd set AllowPersistentLoginCookie to false in Web.config/User.config.

If you have to do this only on a single page, while still allowing for separate "regular" site authentication, I'm not sure how that would be accomplished without forking the code.

Jamie

4/15/2014 3:11:31 AM
Gravatar
Total Posts 17

Re: Allow acces trough SMS API

Hi Jamie,

thanks for your quick reply, but the users of the site will not be registred users.

So the easiest way would be they land on a form page, submit the code that will be verified by the formhandler and if found valid they will be rederict to a page only accesible for verified visitors, all this like I said single websession.

The whole idea is to have a simple fast authentication way to see the content of a page once without registering, logging on, etc...

Thanks
Filip

4/15/2014 9:39:14 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Allow acces trough SMS API

You may be able to do this with a pair of custom features. Put the first feature on the "landing" page, where you prompt for the key. Once the key is validated, set your own session cookie and redirect to the form page, which hosts your second feature and the Form Wizard Pro instance. The second feature would check the session key for validity, and if that fails, redirect to the "not authorized" page.

I hope that helps,

Jamie

4/15/2014 12:03:22 PM
Gravatar
Total Posts 17

Re: Allow acces trough SMS API

Hi Jamie,

thanks for the reply again but since I'm not a PRO in creating addons for Mojoportal but just a Newbie  this information is a bit to little to get me started... :(

 

Filip

4/15/2014 4:27:25 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Allow acces trough SMS API

I'd recommend reading through Developer Docs,  checking out the quick start, and the training videos. If you've already worked with Visual Studio and C#, then it'll be a pretty short learning curve to get started working on mojoPortal features. Once you get the hang of it, it's really not very difficult. As Joe Audette always says, the code is the greatest teacher, and it's all out there for you to examine and search.

If you still think it's beyond what you want to tackle, I know that some of the advertisers right here on mojoPortal.com will do custom development work.

I hope that helps,

Jamie

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