Sha256: bf2ee8c78819c144b3f9d1aeeb6b2b2cacf9cd813068549220bb21ce1c6ed592

Contents?: true

Size: 594 Bytes

Versions: 13

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Doorkeeper
    # Custom Doorkeeper AuthorizationsController to avoid namespace problems.
    class AuthorizationsController < ::Doorkeeper::AuthorizationsController
      include HasSpecificBreadcrumb

      helper_method :oauth_application

      def oauth_application
        @oauth_application ||= Decidim::OAuthApplication.find_by(uid: params[:client_id])
      end

      def breadcrumb_item
        {
          label: t("decidim.doorkeeper.authorizations.new.authorize"),
          active: true
        }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.4 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.29.0 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.3 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.29.0.rc4 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.29.0.rc3 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.29.0.rc2 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.29.0.rc1 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.2 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.1 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.0 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.0.rc5 app/controllers/decidim/doorkeeper/authorizations_controller.rb
decidim-core-0.28.0.rc4 app/controllers/decidim/doorkeeper/authorizations_controller.rb