Hi,
I have problem to set up SAML authentication via OmniAuth using this guide:
http://doc.gitlab.com/ce/integration/omniauth.html
I’m having latest CE edition GitLab 7.11.4 b725318 (on Debian Wheezy), normal authentication and LDAP is working fine and I set this in /etc/gitlab/gitlab.rb
## For setting up omniauth
## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#omniauth-google-twitter-github-login
gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = false
gitlab_rails['omniauth_block_auto_created_users'] = true
gitlab_rails['omniauth_providers'] = [
{
"name" => "saml",
args: {
assertion_consumer_service_url: 'https://git-ssc.cz.oracle.com/users/auth/saml/callback',
idp_cert_fingerprint: '21:36:43:B4:A2:40:5A:A4:81:96:4B:94:79:8B:EE:14:FE:D7:A6:CC',
idp_sso_target_url: 'https://fedlogin-stage.oracle.com/fed/idp/samlv20',
issuer: 'https://git-ssc.cz.oracle.com',
name_identifier_format: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'
}
}
]
gitlab-ctl reconfigure worked fine, but I cannot see SAML button in login, neither metadata or callback urls works (404 error),
Examining logs I found this in sidekick logs:
2015-06-10_10:09:30.34371 Could not find a strategy with name `Saml'. Please ensure it is required or explicitly set it using the :strategy_class option.
2015-06-10_10:09:30.34402 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/devise-3.2.4/lib/devise/omniauth/config.rb:40:in `autoload_strategy'
2015-06-10_10:09:30.34403 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/devise-3.2.4/lib/devise/omniauth/config.rb:25:in `strategy_class'
2015-06-10_10:09:30.34404 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/devise-3.2.4/lib/devise/rails.rb:22:in `block (2 levels) in <class:Engine>'
2015-06-10_10:09:30.34405 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/devise-3.2.4/lib/devise/rails.rb:21:in `each'
2015-06-10_10:09:30.34405 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/devise-3.2.4/lib/devise/rails.rb:21:in `block in <class:Engine>'
2015-06-10_10:09:30.34406 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `instance_exec'
2015-06-10_10:09:30.34407 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `run'
2015-06-10_10:09:30.34407 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-06-10_10:09:30.34411 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
2015-06-10_10:09:30.34411 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2015-06-10_10:09:30.34413 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
2015-06-10_10:09:30.34414 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
2015-06-10_10:09:30.34414 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:345:in `each'
2015-06-10_10:09:30.34415 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:345:in `call'
2015-06-10_10:09:30.34415 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
2015-06-10_10:09:30.34416 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
2015-06-10_10:09:30.34417 /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
2015-06-10_10:09:30.34417 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/initializable.rb:54:in `run_initializers'
2015-06-10_10:09:30.34418 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/application.rb:300:in `initialize!'
2015-06-10_10:09:30.34418 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send'
2015-06-10_10:09:30.34419 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing'
2015-06-10_10:09:30.34421 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
2015-06-10_10:09:30.34421 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
2015-06-10_10:09:30.34422 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
2015-06-10_10:09:30.34423 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
2015-06-10_10:09:30.34423 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
2015-06-10_10:09:30.34424 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-3.3.0/lib/sidekiq/cli.rb:236:in `boot_system'
2015-06-10_10:09:30.34424 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-3.3.0/lib/sidekiq/cli.rb:50:in `run'
2015-06-10_10:09:30.34425 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-3.3.0/bin/sidekiq:8:in `<top (required)>'
2015-06-10_10:09:30.34426 /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/sidekiq:23:in `load'
2015-06-10_10:09:30.34426 /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/sidekiq:23:in `<main>'
Any hints, ideas how to fix?
Thanks
Ivan