Ganesh Ranganathan
2014-Feb-14 10:33 UTC
Refresh token using Omniauth-oauth2 in Rails application?
I am using omniauth-oauth2 in rails to authenticate to a site which supports oauth2. The site gives me after doing the oauth dance, which I then persist into the database 1. Access Token 2. Expires_AT (ticks) 3. Refresh token Is there an omniauth method to refresh the token automatically after it expires or should I write custom code which to do the same. If custom code is to be written, is a helper the right place to write the logic? Thanks, 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoFz5x%2Bqu_zh35HuT2tet34pJywwx7-3s6TzfgrET2CByQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.