Sha256: 5edfc44401b1e3ec5985b1ad9cec891baec1d7cdf21262e194051af5217ee8ef

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 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

3 entries across 3 versions & 1 rubygems

Version Path
doorkeeper-1.3.1 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.3.0 app/controllers/doorkeeper/authorized_applications_controller.rb
doorkeeper-1.2.0 app/controllers/doorkeeper/authorized_applications_controller.rb