Refresh token using Omniauth-oauth2 in Rails application?

ยอดดู 158 ครั้ง
ข้ามไปที่ข้อความที่ยังไม่อ่านรายการแรก

Ganesh Ranganathan

ยังไม่อ่าน,
14 ก.พ. 2557 06:57:2814/2/57
ถึง omni...@googlegroups.com

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?

ตอบทุกคน
ตอบกลับผู้สร้าง
ส่งต่อ
ข้อความใหม่ 0 รายการ