Files
gitlabhq/lib/gitlab
Robert Speicher d75ec6cd46 Merge branch 'fix-missing-saml-error-handling' into 'master'
Add proper nil and error handling to SAML login process

While writing the feature that would allow certain Omniauth providers to be marked as external I noticed that there is a scenario where the `gl_user` method can return `nil` and if this is not properly checked, it will lead to exceptions that will cause 500 errors. It is quite easy to land in this scenario, so I added `nil` checks.

I also noticed that the `saml` method in the `omniauth_callbacks_controller.rb` file lacked a `rescue` for `Gitlab::OAuth::SignupDisabledError`, which can happen if the default configuration from `1_settings.rb` is applied. So I also added this check.

See merge request !3609
2016-04-12 15:46:39 +00:00
..
2015-11-30 18:36:34 +02:00
2016-03-02 10:35:44 +01:00
2015-12-15 00:53:52 -02:00
2015-12-15 00:53:52 -02:00
2014-09-29 12:05:17 +03:00
2015-11-18 13:31:18 +01:00
2014-10-06 00:14:46 +02:00
2015-02-24 15:07:24 +01:00
2015-11-16 12:39:13 +01:00
2014-10-06 00:14:46 +02:00
2015-09-08 20:23:01 -04:00
2014-10-31 17:22:16 -07:00
2015-04-14 15:58:28 +02:00
2014-10-06 00:14:46 +02:00
2015-03-24 18:35:57 -07:00
2014-10-06 00:14:46 +02:00
2016-03-10 14:48:29 -05:00
2015-11-26 17:03:43 +02:00
2014-10-06 00:14:46 +02:00
2015-08-26 11:30:38 -07:00
2016-03-10 12:37:14 +01:00
2013-06-06 10:10:51 +09:00
2016-03-20 23:26:58 +01:00
2016-02-11 18:10:14 +01:00