elsa-core/test/unit/Elsa.Identity.UnitTests/Services
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
..
CredentiallessUserTests.cs Add external authentication broker 2026-07-24 19:04:26 +02:00
DefaultAccessTokenIssuerRegistrationTests.cs Fix external authentication review findings 2026-08-02 03:35:39 +02:00
DefaultApiKeyGeneratorAndParserTests.cs Refine identity secret hashing review fixes 2026-05-21 01:45:17 +02:00
DefaultElsaTokenServiceTests.cs Preserve Elsa permissions during external sign-in 2026-07-26 00:27:54 +02:00
DefaultIdentityRefreshTokenServiceTests.cs Fix local external authentication refresh 2026-07-26 01:49:36 +02:00
DefaultRandomStringGeneratorTests.cs Clear temporary secret hashing buffers 2026-05-21 01:16:12 +02:00
DefaultSecretHasherTests.cs feat(auth)!: structured authorization model, phases 1-6 (#7980) 2026-08-24 23:44:55 +02:00
PermissionStampValidatorTests.cs feat(auth)!: structured authorization model, phases 1-6 (#7980) 2026-08-24 23:44:55 +02:00
RoleAuthorizationServiceTests.cs feat(auth)!: structured authorization model, phases 1-6 (#7980) 2026-08-24 23:44:55 +02:00
RoleDeletionCoordinatorTests.cs fix(identity): publish the role security notification after role deletion (#8026) 2026-09-06 19:44:36 -07:00
RoleManagerTests.cs fix(identity): isolate in-memory roles by tenant (#8032) 2026-09-05 19:01:42 -07:00
SecretHasherDefaultOverloadTests.cs Address identity review feedback 2026-05-21 02:03:06 +02:00
UserDeletionCoordinatorTests.cs Harden external identity race compensation 2026-08-02 23:19:49 +02:00
UserManagerTests.cs fix(identity): stop returning password hashes and salts from user creation (#8041) 2026-09-08 00:26:47 +02:00