debian-mirror-gitlab/app/controllers/jira_connect/oauth_application_ids_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
568 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# frozen_string_literal: true
module JiraConnect
class OauthApplicationIdsController < ::ApplicationController
feature_category :integrations
skip_before_action :authenticate_user!
def show
if Feature.enabled?(:jira_connect_oauth_self_managed) && jira_connect_application_key.present?
render json: { application_id: jira_connect_application_key }
else
head :not_found
end
end
private
def jira_connect_application_key
Gitlab::CurrentSettings.jira_connect_application_key.presence
end
end
end