Sha256: 876ffb6ab3aee72f6dc355182ed4af4c747670cd89501aa6d09821852a968e57
Contents?: true
Size: 730 Bytes
Versions: 4
Compression:
Stored size: 730 Bytes
Contents
require 'oauth/controllers/consumer_controller' class OauthConsumersController < ApplicationController include Oauth::Controllers::ConsumerController def index @consumer_tokens=ConsumerToken.all :conditions => {:user_id => current_user.id} @services=OAUTH_CREDENTIALS.keys-@consumer_tokens.collect{|c| c.class.service_name} end def callback super end def client super end 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
4 entries across 4 versions & 1 rubygems