Class: Doorkeeper::AuthorizedApplicationsController

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

Instance Method Summary collapse

Methods included from Helpers::Controller

#authenticate_admin!, #authenticate_resource_owner!, #current_resource_owner, #get_error_response_from_exception, #handle_token_exception, included, #resource_owner_from_credentials, #server, #skip_authorization?

Instance Method Details

#destroyObject



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

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

#indexObject



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

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