Sha256: 0ec9689b9ff77fae5efdf79f9488460480f9d1ce57962ece5c3f928f8a0656c4

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

class Devise::Oauth2Providable::AuthorizationCode < ActiveRecord::Base
  expires_according_to :authorization_code_expires_in

  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

2 entries across 2 versions & 1 rubygems

Version Path
devise_oauth2_providable-1.0.3 app/models/devise/oauth2_providable/authorization_code.rb
devise_oauth2_providable-1.0.2 app/models/devise/oauth2_providable/authorization_code.rb