Fix SAML error 500 when no groups are defined for user
When there are no groups defined in the auth hash attributes,
`Gitlab::Saml::AuthHash#groups` should return an empty array, and
`Gitlab::Saml::User#find_user` should not mark the user as external.
Closes gitlab-org/gitlab-ce#38923.
Showing
spec/lib/gitlab/saml/auth_hash_spec.rb
0 → 100644
Please
register
or
sign in
to comment