Sha256: 6c5545bc08cf826477fd319ec6a488f02fe65e54851454ebd028a9734ab96424

Contents?: true

Size: 682 Bytes

Versions: 26

Compression:

Stored size: 682 Bytes

Contents

require 'oauth/controllers/provider_controller'
class OauthController < ApplicationController
  include OAuth::Controllers::ProviderController

  protected
  # Override this to match your authorization page form
  # It currently expects a checkbox called authorize
  # def user_authorizes_token?
  #   params[:authorize] == '1'
  # end

  # should authenticate and return a user if valid password.
  # This example should work with most Authlogic or Devise. Uncomment it
  # def authenticate_user(username,password)
  #   user = User.find_by_email params[:username]
  #   if user && user.valid_password?(params[:password])
  #     user
  #   else
  #     nil
  #   end
  # end

end

Version data entries

26 entries across 19 versions & 6 rubygems

Version Path
houston-oauth-plugin-0.5.1 lib/generators/oauth_provider/templates/controller.rb
houston-oauth-plugin-0.5.1 generators/oauth_provider/templates/controller.rb
panjiva-oauth-plugin-0.4.1 lib/generators/oauth_provider/templates/controller.rb
panjiva-oauth-plugin-0.4.1 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.5.1 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.5.1 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.5.0 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.5.0 lib/generators/oauth_provider/templates/controller.rb
oauth-provider-0.5.0rc1 generators/oauth_provider/templates/controller.rb
oauth-provider-0.5.0rc1 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.1 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.1 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.rc2 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.rc1 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre7 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre6 lib/generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre5 lib/generators/oauth_provider/templates/controller.rb
insrc-oauth-plugin-0.4.0.pre6 lib/generators/oauth_provider/templates/controller.rb