Class: Decidim::Doorkeeper::AuthorizationsController

Inherits:
Doorkeeper::AuthorizationsController
  • Object
show all
Includes:
HasSpecificBreadcrumb
Defined in:
app/controllers/decidim/doorkeeper/authorizations_controller.rb

Overview

Custom Doorkeeper AuthorizationsController to avoid namespace problems.

Instance Method Summary collapse

Instance Method Details



15
16
17
18
19
20
# File 'app/controllers/decidim/doorkeeper/authorizations_controller.rb', line 15

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

#oauth_applicationObject



11
12
13
# File 'app/controllers/decidim/doorkeeper/authorizations_controller.rb', line 11

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