Class: Oauth::ApplicationsController
- Inherits:
-
Doorkeeper::ApplicationsController
- Object
- Doorkeeper::ApplicationsController
- Oauth::ApplicationsController
- 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
Constants included from OauthApplications
OauthApplications::CREATED_SESSION_KEY
Instance Method Summary collapse
Methods included from InitializesCurrentUserMode
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_group, #record_experiment_user, #set_experimentation_subject_id_cookie, #track_experiment_event
Methods included from Gitlab::Tracking::Helpers
#dnt_enabled?, #trackable_html_request?
Methods included from OauthApplications
#get_created_session, #load_scopes, #permitted_params, #prepare_scopes, #set_created_session
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_force_frontend_feature_flag, #push_frontend_feature_flag, #push_to_gon_attributes
Methods included from WebpackHelper
#prefetch_link_tag, #webpack_bundle_tag, #webpack_controller_bundle_tags, #webpack_entrypoint_paths, #webpack_preload_asset_tag, #webpack_public_host, #webpack_public_path
Instance Method Details
#create ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'app/controllers/oauth/applications_controller.rb', line 31 def create @application = Applications::CreateService.new(current_user, application_params).execute(request) if @application.persisted? flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create]) set_created_session redirect_to oauth_application_url(@application) else set_index_vars render :index end end |
#index ⇒ Object
23 24 25 |
# File 'app/controllers/oauth/applications_controller.rb', line 23 def index set_index_vars end |
#show ⇒ Object
27 28 29 |
# File 'app/controllers/oauth/applications_controller.rb', line 27 def show @created = get_created_session end |