Class: Doorkeeper::AuthorizedApplicationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/doorkeeper/authorized_applications_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject


9
10
11
12
# File 'app/controllers/doorkeeper/authorized_applications_controller.rb', line 9

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

#indexObject


5
6
7
# File 'app/controllers/doorkeeper/authorized_applications_controller.rb', line 5

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