summaryrefslogtreecommitdiff
path: root/app/models/identity.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Adds Identity#for_user for use in an EE MRce-jej/group-saml-cleans-up-identityJames Edwards-Jones2019-05-241-0/+1
|
* Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas2019-03-281-1/+1
|
* Fix failed LDAP logins when nil user_id presentStan Hu2019-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | 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
* Move Identity.uniqueness_scope to a modulerefactor-reference-regexes-and-identity-scopesYorick Peterse2018-11-121-6/+2
| | | | | | 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.
* Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-0/+2
| | | | Partially addresses #47424.
* Backport Identity.uniqueness_scope from EEJames Edwards-Jones2018-05-021-2/+6
| | | | Originates in 'SamlProvider has many linked Identities' from EE
* Moved o_auth/saml/ldap modules under gitlab/authHoratiu Eugen Vlad2018-02-281-3/+3
|
* Fixed user synced attributes metadata after removing current providerFrancisco Javier López2018-02-151-0/+9
|
* LDAP extern_uids are not normalized when updated via APIFrancisco Javier López2017-12-211-0/+10
|
* Make sure user email is read only when synced with LDAPDouwe Maan2017-12-151-2/+2
|
* Changing OAuth lookup to be case insensitiveFrancisco Javier López2017-11-171-3/+12
|
* Normalize LDAP DN when looking up identityDouwe Maan2017-10-311-1/+4
|
* Implement search by extern_uid in Users APIRobin Bobbitt2017-04-181-0/+2
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-12/+0
| | | | | | | | | 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
* Annotate the modelsZeger-Jan van de Weg2016-05-061-2/+2
|
* Codestyle changesGabriel Mazetto2016-01-121-1/+1
|
* Repair ldap_blocked state when no ldap identity exist anymoreGabriel Mazetto2016-01-081-0/+4
|
* Fix identity and user retrieval when special characters are usedPatricio Cano2015-12-221-0/+1
|
* Validate presence of provider field in Identityidentity-validationDmitriy Zaporozhets2015-06-231-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* fix ldap identitiesValery Sizov2015-04-111-0/+1
|
* Re-annotate modelsDmitriy Zaporozhets2015-03-041-0/+2
|
* Explicitly define ordering in models using default_scopeDmitriy Zaporozhets2015-02-051-0/+1
|
* Rubocop enabled for: Use spaces inside hash literal bracesDmitriy Zaporozhets2015-02-021-1/+1
|
* Annotate modelsDmitriy Zaporozhets2015-01-221-1/+11
|
* Supporting for multiple omniauth provider for the same userValery Sizov2014-12-041-2/+0
|
* Multi-provider auth. LDAP is not reworkedValery Sizov2014-12-041-0/+7