Sha256: 45697db4a9541eade102133e5fde78784793df131fa1bf04998e13bb1d73aa60

Contents?: true

Size: 688 Bytes

Versions: 12

Compression:

Stored size: 688 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

12 entries across 12 versions & 3 rubygems

Version Path
oauth-plugin-0.4.0.rc2 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.rc1 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre7 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre6 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre5 generators/oauth_provider/templates/controller.rb
insrc-oauth-plugin-0.4.0.pre6 generators/oauth_provider/templates/controller.rb
insrc-oauth-plugin-0.4.0.pre5 generators/oauth_provider/templates/controller.rb
le1t0-oauth-plugin-0.4.0.pre4.001 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre4 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre3 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre2 generators/oauth_provider/templates/controller.rb
oauth-plugin-0.4.0.pre1 generators/oauth_provider/templates/controller.rb