Sha256: 49195a9317582165393782066f11d3357040b38696b15f719b455218b7a5dccd
Contents?: true
Size: 811 Bytes
Versions: 2
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true module Doorkeeper class AuthorizedApplicationsController < Doorkeeper::ApplicationController before_action :authenticate_resource_owner! def index @applications = Application.authorized_for(current_resource_owner) respond_to do |format| format.html format.json { render json: @applications } end end def destroy Application.revoke_tokens_and_grants_for( params[:id], current_resource_owner, ) respond_to do |format| format.html do redirect_to oauth_authorized_applications_url, notice: I18n.t( :notice, scope: %i[doorkeeper flash authorized_applications destroy], ) end format.json { render :no_content } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-5.3.1 | app/controllers/doorkeeper/authorized_applications_controller.rb |
doorkeeper-5.3.0 | app/controllers/doorkeeper/authorized_applications_controller.rb |