You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but came into an issue where the Identity records were getting created with the provider and uid attributes not set.
I'm trying omniauth-identity out on rails 4.0.0.beta1. So my best guess is that strong_parameters aren't allowing these attributes to be mass-assigned? I'm not sure how strong_parameters work with Rack middleware or if I'm just totally off the mark.
It's definitely not elegant and I'm not sure if it's solving the root cause of the issue, but just wanted to give you a heads up.
Just out of curiousity, it seems like identity.uid is the same as identity.id. Is it there to keep things consistent with other strategies (since Twitter might pass along a UID that's not tied to an actual record ID)?
Thanks for making such an awesome system!
The text was updated successfully, but these errors were encountered:
Hi,
I tried to follow this tutorial:
https://github.com/intridea/omniauth/wiki/Managing-Multiple-Providers
but came into an issue where the Identity records were getting created with the provider and uid attributes not set.
I'm trying omniauth-identity out on rails 4.0.0.beta1. So my best guess is that strong_parameters aren't allowing these attributes to be mass-assigned? I'm not sure how strong_parameters work with Rack middleware or if I'm just totally off the mark.
The work around for me was to replace:
with something along the lines of
It's definitely not elegant and I'm not sure if it's solving the root cause of the issue, but just wanted to give you a heads up.
Just out of curiousity, it seems like identity.uid is the same as identity.id. Is it there to keep things consistent with other strategies (since Twitter might pass along a UID that's not tied to an actual record ID)?
Thanks for making such an awesome system!
The text was updated successfully, but these errors were encountered: