Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-05-24Adds Identity#for_user for use in an EE MRJames Edwards-Jones
2019-03-28Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas
2019-01-29Fix failed LDAP logins when nil user_id presentStan 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-12Move Identity.uniqueness_scope to a moduleYorick 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-27Enable frozen string in app/models/*.rbgfyoung
Partially addresses #47424.
2018-05-02Backport Identity.uniqueness_scope from EEJames Edwards-Jones
Originates in 'SamlProvider has many linked Identities' from EE
2018-02-28Moved o_auth/saml/ldap modules under gitlab/authHoratiu Eugen Vlad
2018-02-15Fixed user synced attributes metadata after removing current providerFrancisco Javier López
2017-12-21LDAP extern_uids are not normalized when updated via APIFrancisco Javier López
2017-12-15Make sure user email is read only when synced with LDAPDouwe Maan
2017-11-17Changing OAuth lookup to be case insensitiveFrancisco Javier López
2017-10-31Normalize LDAP DN when looking up identityDouwe Maan
2017-04-18Implement search by extern_uid in Users APIRobin Bobbitt
2016-05-09Remove the annotate gem and delete old annotationsJeroen 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-06Annotate the modelsZeger-Jan van de Weg
2016-01-12Codestyle changesGabriel Mazetto
2016-01-08Repair ldap_blocked state when no ldap identity exist anymoreGabriel Mazetto
2015-12-22Fix identity and user retrieval when special characters are usedPatricio Cano
2015-06-23Validate presence of provider field in IdentityDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-04-11fix ldap identitiesValery Sizov
2015-03-05Re-annotate modelsDmitriy Zaporozhets
2015-02-06Explicitly define ordering in models using default_scopeDmitriy Zaporozhets
2015-02-03Rubocop enabled for: Use spaces inside hash literal bracesDmitriy Zaporozhets
2015-01-22Annotate modelsDmitriy Zaporozhets
2014-12-04Supporting for multiple omniauth provider for the same userValery Sizov
2014-12-04Multi-provider auth. LDAP is not reworkedValery Sizov