Sha256: ff00a686a0394e7ac413528f4e78d5f6ab8daaa33785da84a361ef907c4173c1

Contents?: true

Size: 869 Bytes

Versions: 7

Compression:

Stored size: 869 Bytes

Contents

A few non backwards compatible changes have been made that are really easy to fix.

If you are upgrading a oauth_consumer from 0.3.x to 0.4.x add the following line to your consumer_token model:

  belongs_to :user

So it looks like this:

  require 'oauth/models/consumers/token'
  class ConsumerToken < ActiveRecord::Base
    include Oauth::Models::Consumers::Token
    belongs_to :user
  end

You should also upgrade your oauth_consumer_controller as we no longer call login_required in the library. This should make it easier for implementing it with other authentication frameworks:

  require 'oauth/controllers/consumer_controller'
  class OauthConsumersController < ApplicationController
    include Oauth::Controllers::ConsumerController
    # Replace this with the equivalent for your authentication framework
    before_filter :login_required, :only=>:index

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
houston-oauth-plugin-0.5.1 UPGRADE.rdoc
panjiva-oauth-plugin-0.4.1 UPGRADE.rdoc
oauth-plugin-0.5.1 UPGRADE.rdoc
oauth-plugin-0.5.0 UPGRADE.rdoc
oauth-provider-0.5.0rc1 UPGRADE.rdoc
oauth-plugin-0.4.1 UPGRADE.rdoc
oauth-plugin-0.4.0 UPGRADE.rdoc