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