Page 1 of 1

Integration with oAuth provider

Posted: Sun Feb 02, 2014 11:46 am
by araskin3i

Hi,

We are looking to integrating our Appery web app with a user management solution like auth0 ( https://docs.auth0.com/singlepageapp-... ).

The integration seems very easy except for step 3 which requires us to validate the JsonWebToken which is passed back. This must occur on every API call. Do you know if we can do this using the Appery platform? I dont see a way to do it but I wanted to check with you if this is possible. It would save us ALOT of development time as much of the user management is all ready built in for us.


Integration with oAuth provider

Posted: Sun Feb 02, 2014 12:05 pm
by araskin3i

OK so I have done some more research and it looks like it MIGHT be possible using Appery.io

My understanding is that it seems like all my REST services need have a custom security context assigned to them. This way, when they are called, they will execute the security context first before calling the acutal REST API. The only thing I am still not clear on is HOW can I validate the JSONWebToken in the security context and ensure that it is valid.

Any guidance on this will be greatly appreciated.


Integration with oAuth provider

Posted: Sun Feb 02, 2014 8:51 pm
by maxkatz

Appery.io is a platform to create mobile apps. You create a standard jQuery Mobile app, plus you can do a native app with PhoneGap. This explains more: http://docs.appery.io/getting-started. So, your apps runs in the browser or on the device, not in Appery.io.

You can absolutely implement oAuth or oAuth 2 in your app. For example, check out Salesforce plugin. You can connect to any other oAuth provider, you will simply need to setup the flow yourself, based on their docs.


Integration with oAuth provider

Posted: Mon Feb 03, 2014 2:49 am
by mollyfud

Slightly off the Appery.io topic. This service looks pretty cool! Is there a cost to it? I had a look at their site and couldn't see one but thought it might be hidden in the weeds that I was missing!

Would love to hear how you go integrating it!


Integration with oAuth provider

Posted: Mon Feb 03, 2014 1:33 pm
by Kateryna Grynko

Hi Molly,

For now you can use oAuth via REST: http://docs.appery.io/documentation/r...


Integration with oAuth provider

Posted: Mon Feb 03, 2014 3:38 pm
by araskin3i

Hi Molly,

There are quite a few of these services but auth0 does seem to be a good one. I havent used it before but it seems fairly straight forward and it save me a lot of manual coding. For example, built into the service is the ability to verify an email address which used in registration. This code doesnt have to be built, its part of the auth0 service.

As far as cost, you are right. I dont see their pricing anywhere on their website. However, after I created a free account I could see the following costs:

https://dl.dropboxusercontent.com/u/3...