zitadel/internal/repository/user
Livio Spring a07b2f4677
feat: invite user link (#8578)
# Which Problems Are Solved

As an administrator I want to be able to invite users to my application
with the API V2, some user data I will already prefil, the user should
add the authentication method themself (password, passkey, sso).

# How the Problems Are Solved

- A user can now be created with a email explicitly set to false.
- If a user has no verified email and no authentication method, an
`InviteCode` can be created through the User V2 API.
  - the code can be returned or sent through email
- additionally `URLTemplate` and an `ApplicatioName` can provided for
the email
- The code can be resent and verified through the User V2 API
- The V1 login allows users to verify and resend the code and set a
password (analog user initialization)
- The message text for the user invitation can be customized

# Additional Changes

- `verifyUserPasskeyCode` directly uses `crypto.VerifyCode` (instead of
`verifyEncryptedCode`)
- `verifyEncryptedCode` is removed (unnecessarily queried for the code
generator)

# Additional Context

- closes #8310
- TODO: login V2 will have to implement invite flow:
https://github.com/zitadel/typescript/issues/166
2024-09-11 10:53:55 +00:00
..
schema feat: add schema user create and remove (#8494) 2024-08-28 19:46:45 +00:00
schemauser feat: add schema user create and remove (#8494) 2024-08-28 19:46:45 +00:00
aggregate.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
auth_request_info.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
eventstore.go feat: invite user link (#8578) 2024-09-11 10:53:55 +00:00
human_address.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_avatar.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
human_email.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
human_external_idp.go fix: update external username on idp if auto update is enabled (#7048) 2023-12-08 18:22:07 +01:00
human_mfa_events.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
human_mfa_otp.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
human_mfa_passwordless.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
human_mfa_u2f.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
human_mfa_web_auth_n.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_password.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
human_phone.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
human_profile.go refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
human_refresh_token.go feat(oidc): token exchange impersonation (#7516) 2024-03-20 10:18:46 +00:00
human.go feat: invite user link (#8578) 2024-09-11 10:53:55 +00:00
machine_key.go feat: api v2beta to api v2 (#8283) 2024-07-26 22:39:55 +02:00
machine_secret.go feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
machine.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
metadata.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
personal_access_token.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
user.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
v1.go fix: password hash update and add missing i18n (#6285) 2023-07-28 09:09:15 +02:00