zitadel/cmd
Livio Spring fb162a7d75
fix(login): improve auth handlers (#7969)
# Which Problems Are Solved

During the implementation of #7486 it was noticed, that projections in
the `auth` database schema could be blocked.
Investigations suggested, that this is due to the use of
[GORM](https://gorm.io/index.html) and it's inability to use an existing
(sql) transaction.
With the improved / simplified handling (see below) there should also be
a minimal improvement in performance, resp. reduced database update
statements.

# How the Problems Are Solved

The handlers in `auth` are exchanged to proper (sql) statements and gorm
usage is removed for any writing part.
To further improve / simplify the handling of the users, a new
`auth.users3` table is created, where only attributes are handled, which
are not yet available from the `projections.users`,
`projections.login_name` and `projections.user_auth_methods` do not
provide. This reduces the events handled in that specific handler by a
lot.

# Additional Changes

None

# Additional Context

relates to #7486
2024-05-22 15:26:02 +00:00
..
admin chore: test server for direct resource access 2023-04-24 20:40:31 +03:00
build
encryption fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
hooks feat: support whole config as env (#6336) 2024-02-16 16:04:42 +00:00
initialise refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
key fix(db): always use begin tx (#7142) 2024-01-04 16:12:20 +00:00
ready feat(api): feature flags (#7356) 2024-02-28 10:55:54 +02:00
setup fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00
start fix(setup): decode complex config strings (#7854) 2024-05-01 12:17:27 +02:00
tls
defaults.yaml feat(cnsl): docs link can be customized and custom button is available (#7840) 2024-05-13 16:01:50 +02:00
zitadel.go ci: improve performance (#5953) 2023-07-17 10:08:20 +02:00