Ruby on Rails
Monday, February 24, 2014
On Fri, Feb 14, 2014 at 9:03 PM, Jordon Bedwell <envygeeks@gmail.com> wrote:
Last I remember omniauth does not support this at all. No, a helper
is not the best place to do it, you should probably either background
check the token and refresh it there or add it as a method to the user
model since it's related to the user and it's behavior
Thanks,
I added it to the User model which makes a rest-client call and gets the new refreshed code.
Here is the code http://stackoverflow.com/questions/21707734/refresh-token-using-omniauth-oauth2-in-rails-application
Cheers,
Ganesh
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoGNK4j0%3DGfR%3DJbxZaGGdc%3D_aK5UDgvGQHbjHABX1jqDtw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment