Sha256: 66abee9f4285f608c988c44fff2d2cee9d9c12c08479b1f67520cef571f438bf
Contents?: true
Size: 809 Bytes
Versions: 13
Compression:
Stored size: 809 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
13 entries across 13 versions & 1 rubygems