devise_token_auth icon indicating copy to clipboard operation
devise_token_auth copied to clipboard

How to use omniauth from SPA

Open joshfester opened this issue 7 years ago • 9 comments

I've been at this for days now and am unable to figure out how to get omniauth working with Ember Simple Auth. I also tried J Toker, but it seems that is no longer supported.

Can I just get an explanation in pure HTTP requests/responses for the process of using omniauth (specifically Facebook)? If I just understood what this gem was expecting to receive at each endpoint, what it sends back, and in what order, I'd be very happy to help on J-Toker or create an Ember addon. Thanks!

joshfester avatar Apr 14 '17 07:04 joshfester

@joshfester very good point. I'm going to leave this one open...I will try to come back and explain more when I come back from my issue audit!

zachfeldman avatar Oct 07 '17 18:10 zachfeldman

@joshfester did you make any headway using this with Ember? I'm evaluating my options for Ember + Rails API + JSON API

jayvarner avatar May 02 '18 15:05 jayvarner

@jayvarner to my relief, my team ended up going with email-only logins, so I stopped pursuing this. However, I definitely recommend that stack! It has allowed me and my team to be incredibly productive in ways I haven't experienced with other stacks.

joshfester avatar May 03 '18 00:05 joshfester

Just curious if anyone has had any updates or figured out how to get this working. I'd love to learn how to use a React App with SPA and omniauth. I've been wrestling with the proper way to do this for awhile now and wish the documentation was just a bit more beefy...

Email login is working excellently, however!

andrewmartin avatar Jul 07 '18 23:07 andrewmartin

@andrewmartin, I haven't had time to come back to this gem. I'm currently using rails_api_auth and then ember-simple-auth + torii on the front end. It works well enough. I haven't tried anything like that with React. This article might help?

jayvarner avatar Jul 10 '18 14:07 jayvarner

@andrewmartin I'm actually facing this issue. Did you find a way to implement it? I've been asking everywhere from slack, stack overflow but I haven't got any response 😔

croisle avatar May 10 '20 21:05 croisle

has anyone got it to work?

warrenlalata avatar Jul 12 '20 07:07 warrenlalata

It's been long enough that I can't remember where I got stuck with this gem. We've gone all OAuth and not storing/managing user passwords. So there is no reason for us to use Devise. Omniauth is all we need on the Rails side.

jayvarner avatar Jul 17 '20 12:07 jayvarner

but in omniauth callback it stores password

warrenlalata avatar Jul 17 '20 14:07 warrenlalata