watzon
watzon

Reputation: 2549

User authentication between a rails api and a node.js app

I am attempting to understand how segmented apps work so I'm building one that uses rails for the back-end api and node.js for the front and middle. What I am trying to figure out is how to let a user log in through rails and use that same session information in the node app.

I have heard of oauth2, but I don't know if that's what I need or if I need something else. My main concern is that I want to keep all the models in the rails app so I can take advantage of the syntactic sugar and associations that rails provides. The node app will just connect to the rails app through it's api.

Are there any tutorials out there for this? Or does anyone know how I can do it?

Upvotes: 2

Views: 886

Answers (1)

watzon
watzon

Reputation: 2549

Found my answer here. Hope it can help someone else out

Upvotes: 1

Related Questions