Sha256: 2d84426a2bb5d9a1e583cad58cdeb4bfcc52d70df70820d2d824ed1b4d3c1f80

Contents?: true

Size: 486 Bytes

Versions: 13

Compression:

Stored size: 486 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 => I18n.t(:notice, :scope => [:doorkeeper, :flash, :authorized_applications, :destroy])
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
doorkeeper-1.1.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.0.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.0.0.rc2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.0.0.rc1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.7.4 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.7.3 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.7.2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.7.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.7.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.7 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.6 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.5 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-0.6.4 app/controllers/doorkeeper/authorized_applications_controller.rb