Sha256: a9d430c9541092449ad195a873f3eeb01eda977d263887cbd61733d0137956e2

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

require 'oauth/controllers/consumer_controller'
class OauthConsumersController < ApplicationController
  include Oauth::Controllers::ConsumerController
  
  protected
  
  # Change this to decide where you want to redirect user to after callback is finished.
  # params[:id] holds the service name so you could use this to redirect to various parts
  # of your application depending on what service you're connecting to.
  def go_back
    redirect_to root_url
  end
  
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
pelle-oauth-plugin-0.3.5 generators/oauth_consumer/templates/controller.rb
pelle-oauth-plugin-0.3.6 generators/oauth_consumer/templates/controller.rb
pelle-oauth-plugin-0.3.7 generators/oauth_consumer/templates/controller.rb
pelle-oauth-plugin-0.3.8 generators/oauth_consumer/templates/controller.rb
oauth-plugin-0.3.7 generators/oauth_consumer/templates/controller.rb
oauth-plugin-0.3.5 generators/oauth_consumer/templates/controller.rb
oauth-plugin-0.3.6 generators/oauth_consumer/templates/controller.rb
oauth-plugin-0.3.8 generators/oauth_consumer/templates/controller.rb