Sha256: b19d3bb00587d9edce003197a16dea5b3b87ac0be3a552e1c9f453cfa2f2c9d1

Contents?: true

Size: 279 Bytes

Versions: 10

Compression:

Stored size: 279 Bytes

Contents

require 'expirable_token'

class AuthorizationCode < ActiveRecord::Base
  include ExpirableToken
  def access_token
    @access_token ||= expired! && user.access_tokens.create(:client => client)
  end
  def valid_request?(req)
    self.redirect_uri == req.redirect_uri
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
devise_oauth2_providable-0.3.8 app/models/authorization_code.rb
devise_oauth2_providable-0.3.7 app/models/authorization_code.rb
devise_oauth2_providable-0.3.6 app/models/authorization_code.rb
devise_oauth2_providable-0.3.5 app/models/authorization_code.rb
devise_oauth2_providable-0.3.4 app/models/authorization_code.rb
devise_oauth2_providable-0.3.3 app/models/authorization_code.rb
devise_oauth2_providable-0.3.2 app/models/authorization_code.rb
devise_oauth2_providable-0.3.1 app/models/authorization_code.rb
devise_oauth2_providable-0.3.0 app/models/authorization_code.rb
devise_oauth2_providable-0.2.4 app/models/authorization_code.rb