Joined August 2013
·
Jan
mediatainment
·
Vienna
·
Posted to
Omniauth with multiple providers in a Rails/Mongoid app
over 1 year
ago
Not sure, but is this volitonal?
user.uid = auth.uid
user.provider = auth.provider
user.uid and user.provider is not a User method. They should be Idendity methods, or I am wrong?
This is the part I am hanging.
Ok, I agree with that. But what when a user registers without an "omniauth". I mean a "regular" user which registers via username & password?
firstidentity gets called :aftercreate and the self.uid, self.provider, self.id and self.token will be blank at this time?