Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-09-13 | Add latest changes from gitlab-org/gitlab@master | GitLab Bot | |
2019-05-24 | Adds Identity#for_user for use in an EE MR | James Edwards-Jones | |
2019-03-28 | Inherit from ApplicationRecord instead of ActiveRecord::Base | Nick Thomas | |
2019-01-29 | Fix failed LDAP logins when nil user_id present | Stan Hu | |
When a LDAP user signs in the for the first time and if there is an `Identity` object with `user_id` of `nil`, new users will not be able to be register until that entry is cleared because of the way identities are created: 1. First, the User object is built but not saved, so it has no `id`. 2. Then, `user.identities.build(provider: 'ldapmain')` is called, but it does not have an associated `user_id` as a result. 3. `User#save` is called, but the `Identity` validation fails if an existing entry with `user_id` of `nil` already exists. The uniqueness validation for `nil` values doesn't make any sense in this case. We should be enforcing this at the database level with a foreign key constraint. To work around the issue we can validate against the user instead, which does the right thing even when the user isn't saved yet. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56734 | |||
2018-11-12 | Move Identity.uniqueness_scope to a module | Yorick Peterse | |
Moving this method to a separate module looks a bit odd, but it allows for EE to extend the method without also having to redefine a variety of validation rules. | |||
2018-07-27 | Enable frozen string in app/models/*.rb | gfyoung | |
Partially addresses #47424. | |||
2018-05-02 | Backport Identity.uniqueness_scope from EE | James Edwards-Jones | |
Originates in 'SamlProvider has many linked Identities' from EE | |||
2018-02-28 | Moved o_auth/saml/ldap modules under gitlab/auth | Horatiu Eugen Vlad | |
2018-02-15 | Fixed user synced attributes metadata after removing current provider | Francisco Javier López | |
2017-12-21 | LDAP extern_uids are not normalized when updated via API | Francisco Javier López | |
2017-12-15 | Make sure user email is read only when synced with LDAP | Douwe Maan | |
2017-11-17 | Changing OAuth lookup to be case insensitive | Francisco Javier López | |
2017-10-31 | Normalize LDAP DN when looking up identity | Douwe Maan | |
2017-04-18 | Implement search by extern_uid in Users API | Robin Bobbitt | |
2016-05-09 | Remove the annotate gem and delete old annotations | Jeroen van Baarsen | |
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382 | |||
2016-05-06 | Annotate the models | Zeger-Jan van de Weg | |
2016-01-12 | Codestyle changes | Gabriel Mazetto | |
2016-01-08 | Repair ldap_blocked state when no ldap identity exist anymore | Gabriel Mazetto | |
2015-12-22 | Fix identity and user retrieval when special characters are used | Patricio Cano | |
2015-06-23 | Validate presence of provider field in Identity | Dmitriy Zaporozhets | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||
2015-04-11 | fix ldap identities | Valery Sizov | |
2015-03-05 | Re-annotate models | Dmitriy Zaporozhets | |
2015-02-06 | Explicitly define ordering in models using default_scope | Dmitriy Zaporozhets | |
2015-02-03 | Rubocop enabled for: Use spaces inside hash literal braces | Dmitriy Zaporozhets | |
2015-01-22 | Annotate models | Dmitriy Zaporozhets | |
2014-12-04 | Supporting for multiple omniauth provider for the same user | Valery Sizov | |
2014-12-04 | Multi-provider auth. LDAP is not reworked | Valery Sizov | |