silentpartnersoftware / Keycloak.Net

C# client for Keycloak version 17+
MIT License
51 stars 31 forks source link

Changing the user creation process. Implemented header parsing in the… #22

Closed crowar closed 1 year ago

crowar commented 1 year ago

… response from KeyCloak and getting the user ID

sps-campbellwray commented 1 year ago

Hi @crowar.

There is an existing method, CreateAndRetrieveUserIdAsync(), that already does what you are trying to achieve, except it returns the userId directly to the caller. Is there a reason that this existing method does not work for you?

My main concern with your proposed change is that modifying the userId on the user object that was passed into the method is not very discoverable, i.e. people are unlikely to know that they need to check there for the userId.

Campbell

crowar commented 1 year ago

For some reason, I did not see this method. Thanks for the comment