Generic OAuth: Prevent adding duplicated users (#32286)

* Add special check for generic oauth case

* Converted from Convey to testify

* Fix according to reviewer's comments

* More changes according to reviewer's comments

* Handle error if user is not found

* Move generic oauth test from user_test.go to user_auth_test.go

* Update pkg/services/sqlstore/user_auth_test.go

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Created genericOAuthModule const

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Dimitris Sotirakis
2021-04-09 13:28:35 +02:00
committed by GitHub
co-authored by Marcus Efraimsson
parent e6a98ce1e4
commit b867ceda9b
3 changed files with 715 additions and 631 deletions
File diff suppressed because it is too large Load Diff