elsa-core/test/unit/Elsa.Identity.UnitTests
Sipke Schoorstra 83af7309f2
fix(identity): stop returning password hashes and salts from user creation (#8041)
The POST /identity/users response serialized the plain-text password
(including one the caller supplied), the password hash, and the salt.
The response now carries only id, name, roles, tenantId and a nullable
generatedPassword that is populated once, and only when Core generated
the password because none was supplied.

- CreateUserResult gains IsPasswordGenerated so the endpoint can tell a
  generated password from a supplied one without re-deriving it.
- Response.FromResult centralises the mapping and omits credential
  material.
- Expose Elsa.Identity internals to Elsa.Identity.UnitTests and add
  contract tests covering the response shape, the no-echo rule, the
  serialized JSON, and UserManager's generated-password flag.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-08 00:26:47 +02:00
..
Authorization refactor(identity)!: retire the SecurityRoot policy in favour of endpoint permissions (#8003) 2026-08-28 22:28:29 +02:00
Endpoints fix(identity): stop returning password hashes and salts from user creation (#8041) 2026-09-08 00:26:47 +02:00
Features refactor(identity)!: retire the SecurityRoot policy in favour of endpoint permissions (#8003) 2026-08-28 22:28:29 +02:00
HostedServices refactor(identity)!: retire the SecurityRoot policy in favour of endpoint permissions (#8003) 2026-08-28 22:28:29 +02:00
Options [codex] Fail fast on default JWT signing keys (#7496) 2026-05-20 22:30:49 +02:00
Providers [codex] Remove production-usable default admin credentials (#7500) 2026-05-20 20:58:03 +02:00
Services fix(identity): stop returning password hashes and salts from user creation (#8041) 2026-09-08 00:26:47 +02:00
ShellFeatures [codex] Remove production-usable default admin credentials (#7500) 2026-05-20 20:58:03 +02:00
Elsa.Identity.UnitTests.csproj Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
IdentityTokenTestConstants.cs Distinguish refresh tokens from API access tokens (#7509) 2026-05-20 14:04:28 +02:00