Class: Doorkeeper::AuthorizedApplicationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Doorkeeper::AuthorizedApplicationsController
- Defined in:
- app/controllers/doorkeeper/authorized_applications_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/controllers/doorkeeper/authorized_applications_controller.rb', line 16 def destroy Doorkeeper.config.application_model.revoke_tokens_and_grants_for( params[:id], current_resource_owner, ) respond_to do |format| format.html do redirect_to , notice: I18n.t( :notice, scope: %i[doorkeeper flash authorized_applications destroy], ) end format.json { head :no_content } end end |
#index ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/doorkeeper/authorized_applications_controller.rb', line 7 def index @applications = Doorkeeper.config.application_model.(current_resource_owner) respond_to do |format| format.html format.json { render json: @applications, current_resource_owner: current_resource_owner } end end |