zitadel/internal/user/repository/view/model
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
..
refresh_token_query.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
refresh_token.go fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00
token_query.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
token.go fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00
user_query.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
user_session_query.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
user_session_test.go fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00
user_session.go fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00
user_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user.go fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00