Class: Doorkeeper::AuthorizedApplicationsController
Instance Method Summary
collapse
#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
#destroy ⇒ Object
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
|
#index ⇒ Object
4
5
6
|
# File 'app/controllers/doorkeeper/authorized_applications_controller.rb', line 4
def index
@applications = Doorkeeper::Application.authorized_for(current_resource_owner)
end
|