Sha256: 7048717b7291e53a12d0c2a07f5f6c6e60dc7d01e44496b77c9e053a24b45ddb
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 Bytes
Contents
module Rack module OAuth2 class AccessToken class Legacy < AccessToken def initialize(attributes = {}) super self.expires_in = ( self.expires_in || attributes[:expires] ).try(:to_i) end def authenticate(request) request.headers["Authorization"] = "OAuth #{access_token}" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems