Class: Oauth::ApplicationsController

Inherits:
Doorkeeper::ApplicationsController
  • Object
show all
Includes:
Gitlab::Experimentation::ControllerConcern, Gitlab::GonHelper, InitializesCurrentUserMode, OauthApplications, PageLayoutHelper
Defined in:
app/controllers/oauth/applications_controller.rb

Constant Summary

Constants included from Gitlab::Experimentation::GroupTypes

Gitlab::Experimentation::GroupTypes::GROUP_CONTROL, Gitlab::Experimentation::GroupTypes::GROUP_EXPERIMENTAL

Instance Method Summary collapse

Methods included from InitializesCurrentUserMode

#current_user_mode

Methods included from Gitlab::Experimentation::ControllerConcern

#experiment_enabled?, #experiment_tracking_category_and_group, #frontend_experimentation_tracking_data, #push_frontend_experiment, #record_experiment_conversion_event, #record_experiment_user, #set_experimentation_subject_id_cookie, #track_experiment_event

Methods included from OauthApplications

#load_scopes, #prepare_scopes

Methods included from PageLayoutHelper

#blank_container, #container_class, #favicon, #fluid_layout, #header_title, #nav, #page_canonical_link, #page_card_attributes, #page_card_meta_tags, #page_description, #page_image, #page_itemtype, #page_title, #search_context, #sidebar, #user_status_properties

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods included from Gitlab::GonHelper

#add_gon_variables, #default_avatar_url, #push_frontend_feature_flag, #push_to_gon_features

Methods included from WebpackHelper

#webpack_bundle_tag, #webpack_controller_bundle_tags, #webpack_entrypoint_paths, #webpack_public_host, #webpack_public_path

Methods included from StartupCssHelper

#use_startup_css?

Instance Method Details

#createObject


27
28
29
30
31
32
33
34
35
36
37
38
# File 'app/controllers/oauth/applications_controller.rb', line 27

def create
  @application = Applications::CreateService.new(current_user, create_application_params).execute(request)

  if @application.persisted?
    flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create])

    redirect_to oauth_application_url(@application)
  else
    set_index_vars
    render :index
  end
end

#indexObject


23
24
25
# File 'app/controllers/oauth/applications_controller.rb', line 23

def index
  set_index_vars
end