Sha256: cb5ac360f05741ec45345492506b8e7595971250482819f8fdcc00d083d05e02
Contents?: true
Size: 429 Bytes
Versions: 29
Compression:
Stored size: 429 Bytes
Contents
module Rack module OAuth2 class AccessToken class Legacy < AccessToken def initialize(attributes = {}) super self.expires_in = self.expires_in.try(:to_i) end def to_s # This is for fb_graph self.access_token end def authenticate(request) request.header["Authorization"] = "OAuth #{access_token}" end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems