Closed NoTuxNoBux closed 1 year ago
Hmmm, I just realized that, since Wrapt doesn't generate the actual authentication implementation itself, is this perhaps intended to be the remote identifier on the identity provider rather than the local ID?
Yeah this is the IDP identifier. Check out how the keycloak portion integrates (ef use policy handler adds a user of non exists) and you'll see.
Going to close this
It's a minor bug, but the generated User classes have their own identifier generated whilst they already inherit from
BaseEntity
, which also provides an ID:This means there are two GUIDs in the database for each
User
.Related to this, the generated
PUT
andPOST
calls expect an ID to be passed in the data, which is a bit awkward sincePUT
already expects the ID as parameter and the identifier is usually not a field that clients should be able to update.Steps to reproduce
Further technical details
Craftsman version (
dotnet tool list -g
): 0.20.0