Sha256: 9880af9ed98549bd74110dd9a31609c0ca5932d760d145b34b69bd6d6404aa53

Contents?: true

Size: 486 Bytes

Versions: 21

Compression:

Stored size: 486 Bytes

Contents

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

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

    def destroy
      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
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
doorkeeper-3.1.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-3.0.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.2.2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-3.0.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-3.0.0.rc2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-3.0.0.rc1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.2.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.2.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.1.4 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.4.2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.1.3 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.1.2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.1.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.1.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.0.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.4.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.0.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.0.0.rc3 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.0.0.rc2 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-2.0.0.alpha1 app/controllers/doorkeeper/authorized_applications_controller.rb