Skip to content
代码片段 群组 项目
提交 9a9bcee3 编辑于 作者: Aboobacker MK's avatar Aboobacker MK 提交者: Peter Leitzen
浏览文件

Support max_byte_size settings for instance SAML

We had saml_message_max_byte_size settings which was only applicable for
group SAML. This MR enables the instance same config to configure
maximum message size

Changelog: fixed
上级 a631a3a6
No related branches found
No related tags found
无相关合并请求
......@@ -160,6 +160,10 @@
end
end
# Fill out default Settings for omniauth-saml
OmniAuth::Strategies::SAML.default_options['message_max_bytesize'] = Settings.omniauth['saml_message_max_byte_size']
# SAML should be enabled for the tests automatically, but only for EE.
saml_provider_enabled = Settings.omniauth.providers.any? do |provider|
provider['name'] == 'group_saml'
......
......@@ -24,6 +24,7 @@ require_relative '../lib/system_check/helpers'
# Required for config/initializers/1_settings.rb
require 'omniauth'
require 'omniauth-github'
require 'omniauth-saml'
require 'etc'
require 'gitlab/utils/all'
require 'gitlab/safe_request_store'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册