Sha256: c276dccdd744313425dcffdc7f4dc2c1b80e371ff0c31671873017ad2c7e9eeb

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

class Doorkeeper::AuthorizedApplicationsController < Doorkeeper::ApplicationController
  before_filter :authenticate_resource_owner!

  def index
    @applications = Doorkeeper::Application.authorized_for(current_resource_owner)
  end

  def destroy
    Doorkeeper::AccessToken.revoke_all_for params[:id], current_resource_owner
    redirect_to oauth_authorized_applications_url, :notice => "Application revoked."
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
doorkeeper-0.6.3 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.0.rc1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.5.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.5.0.rc1 app/controllers/doorkeeper/authorized_applications_controller.rb