zitadel/internal/api/grpc
Livio Spring 07b2bac463
fix: allow login with user created through v2 api without password (#8291)
# Which Problems Are Solved

User created through the User V2 API without any authentication method
and possibly unverified email address was not able to login through the
current hosted login UI.

An unverified email address would result in a mail verification and not
an initialization mail like it would with the management API. Also the
login UI would then require the user to enter the init code, which the
user never received.

# How the Problems Are Solved

- When verifying the email through the login UI, it will check for
existing auth methods (password, IdP, passkeys). In case there are none,
the user will be prompted to set a password.
- When a user was created through the V2 API with a verified email and
no auth method, the user will be prompted to set a password in the login
UI.
- Since setting a password requires a corresponding code, the code will
be generated and sent when login in.

# Additional Changes

- Changed `RequestSetPassword` to get the codeGenerator from the
eventstore instead of getting it from query.

# Additional Context

- closes https://github.com/zitadel/zitadel/issues/6600
- closes https://github.com/zitadel/zitadel/issues/8235

---------

Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
2024-07-17 06:43:07 +02:00
..
action fix: actions v2 circular check for includes (#7563) 2024-05-22 16:05:06 +00:00
admin fix: error handling to prevent panics (#8248) 2024-07-04 14:11:06 +00:00
auth fix: allow login with user created through v2 api without password (#8291) 2024-07-17 06:43:07 +02:00
authn chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
change refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
client/middleware refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
event refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
feature/v2 perf(import): optimize search for domains claimed by other organizations (#8200) 2024-07-05 09:36:00 +02:00
gerrors fix: exclude db connection error details (#7785) 2024-04-23 08:35:25 +00:00
idp feat(saml): allow setting nameid-format and alternative mapping for transient format (#7979) 2024-05-23 05:04:07 +00:00
instance feat(api): feature flags (#7356) 2024-02-28 10:55:54 +02:00
management fix: allow login with user created through v2 api without password (#8291) 2024-07-17 06:43:07 +02:00
member refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
metadata fix(api): correct mapping of metadata queries (#7609) 2024-03-21 14:56:58 +00:00
object feat: user v2 service query (#7095) 2024-01-17 10:00:10 +01:00
oidc/v2 perf(oidc): optimize token creation (#7822) 2024-05-16 07:07:56 +02:00
org fix: add OrgIDQuery to the queries for organizations (#8312) 2024-07-16 13:12:19 +00:00
policy feat(cnsl): docs link can be customized and custom button is available (#7840) 2024-05-13 16:01:50 +02:00
project feat(oidc): token exchange impersonation (#7516) 2024-03-20 10:18:46 +00:00
server feat: add http_server_return_code_counter metric to gateway (#8173) 2024-07-04 09:37:23 +00:00
session/v2 fix(oidc): remove MFA requirement on ZITADEL API based on user auth methods (#8069) 2024-06-12 12:24:17 +00:00
settings fix: add missing SAML type for GetActiveIdentityProviders (#8186) 2024-06-28 15:00:56 +00:00
system fix: consider oidc session events for authN milestones (#8089) 2024-06-12 06:49:14 +02:00
text feat: password age policy (#8132) 2024-06-18 11:27:44 +00:00
user fix: add details to ListUsers for user results (#8255) 2024-07-10 17:49:35 +02:00
config.go remove pointers on configs 2020-03-27 13:57:16 +01:00
fields.go fix: provide more information in the retrieve idp information (#5927) 2023-06-20 14:39:50 +02:00
header_test.go remove negated integration tags 2023-04-26 19:55:13 +03:00
header.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
probes_test.go add server reflection to Probes list 2023-05-07 16:47:43 +02:00
probes.go add server reflection to Probes list 2023-05-07 16:47:43 +02:00