Authenticating users Ionic App with Rails Devise as a backend - ruby-on-rails

Has anyone successfully implemented authentication on an Ionic application that uses a Rails application with Devise as a backend? If so, what implementation did you use to that end? Please Provide me a Good Tutorial.

we've just written a tutorial covering exactly this( Rails and Ionic - Authentication with Devise ). It also comes with github example repos you can download and try out.

Related

Connecting ios app to a rails app that uses pow and devise

I want to make an ios app that can create/login users and is linked to a Rails api that uses devise. I've tried using Restkit and AFNetworking but am having some trouble. I understand fetch and pull requests but am not sure how to use tokens to create/login users.
I have a rails api that uses pow built from this tutorial:
http://apionrails.icalialabs.com/book
Does anybody have any advice/examples that can get me going in the right direction?

How to use devise gem to be the Oauth Provider of another app

Basically what I have now are 2 apps, 1 is php and the other one is rails. The rails app is the main app at the moment and contains all the user info, since I'm having a new php based app, I'd like to skip the whole registration and authentication part on php and immediately have it authenticate on the rails app instead via devise.
Are there any good reading materials or anyone can guide me here on how to properly do this?

Rails3: How to secure an Api

I've a Rails app and now I'm building a phonegap app for mobiles.
My idea is create an API in my Rails app and the mobile app will be able read the json responses of my api controllers like in the #350 RailsCast tutorial:
http://railscasts.com/episodes/350-rest-api-versioning
In the Rails app, I've users, and they can register and login with Devise gem. For securing my API I read the #352 RailsCast tutorial:
http://railscasts.com/episodes/352-securing-an-api?view=asciicast
My question is if is possible securing my API somehow with Devise, because I want my users will be able register or login through phonegap app and if they log in the app successfully, they will be able read the json responses.
Someone knows tutorials about this?
Is better using also Oauth2 or only with Devise gem is possible?
thanks.
Here is a tutorioal of Google calendar with nice Omniauth 2.0 issues
http://blog.baugues.com/google-calendar-api-oauth2-and-ruby-on-rails

rails 3: Integrating QBO and QBD in rails 3.2 app

I want to integrate QBO and QBD in my rails 3.2 application that I am developing. Please help me how to integrate QBO and QBD API in my web application. I have tried http://developer.intuit.com and created application there. I have a consumer key and consumer secret also. Now i want to integrate these key to my web application how to do this? Any nice resources or gem...please help me!
Please refer:
https://developer.intuit.com/docs/0025_quickbooksapi/0010_getting_started
There are sample apps also available for .net and java. You can refer them for implementing the same logic in your application.
You can download sample apps from the GITHUB-
https://github.com/IntuitDeveloperRelations/IPP_Sample_Code
Set your keys in web.config and debug it for more information.
Steps to be followed:
1)Get the opened information for the user using SignIn with Intuit.
2) Then implement Connect to QuickBooks on your home page and redirect to your call back url. Create oauth session and redirect to OAUTH grant url.
3) On the OAUTh grant url page, call AUthorize url - https://workplace.intuit.com/Connect/Begin
4) You will then have the realm id and open id info. The Blue Dot menu will then load.
I published a two-part tutorial on getting started with QuickBooks integration inside of a Rails app using the Quickeeboks gem.
Update: I just added some more tutorials and screencasts demonstrating integrating a Rails app with the new version 3 QuickBooks API. The previously mentioned tutorial covers the version 2 API.
I am using quickeebook gem for quickbook integration. It supports lots of features but Quickbook::Online::Job model is not supported in quickeebook gem. Thats why I am searching for some alternatives.
For learning about quickeebook gem, follow : https://github.com/ruckus/quickeebooks
really nice place to integrate quickbook in rails 3 application

Facebook Connect + restful_authentication

I've been following Stuart's tutorial at
http://www.madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in-15-minutes-00523
and have been having a problem:
I get a NoMethodError in UsersController#link_user_accounts; Rails
doesn’t seem to recognize “facebook_session”. I have facebooker
installed and have successfully authenticated using the normal
Facebook API methods.
Has anyone tried this before? Anyone know what might be wrong? It
seems that somehow the Facebooker library isn't getting fully
loaded...
If you're trying to integrate Facebook Connect authentication to your application, I would strongly recommend switching from restful_authentication to Authlogic. It has an addon that gives you easy to use access to Facebook Connect.
You can download an example app that uses Authlogic here to take a look.
For the facebook-session to work, all files should be at the correct domain. Have you got all the files / libraries on the same domain?

Resources