gitlab-ce/app/controllers/oauth/device_codes_controller.rb

15 lines
403 B
Ruby

# frozen_string_literal: true
module Oauth
class DeviceCodesController < Doorkeeper::DeviceAuthorizationGrant::DeviceCodesController
def create
# rubocop:disable Gitlab/FeatureFlagWithoutActor -- Does not execute in user context
return :not_found unless Feature.enabled?(:oauth2_device_grant_flow)
# rubocop:enable Gitlab/FeatureFlagWithoutActor
super
end
end
end