lvermeulen / Keycloak.Net

C# client for Keycloak 6.x
MIT License
206 stars 121 forks source link

UserNameStatus deserialization error #52

Open chrisstephanrm opened 3 years ago

chrisstephanrm commented 3 years ago

Hello,

So I have an issue with the "GetUserNameStatusInBruteForceDetectionAsync" function. Its response "UserNameStatus" is expecting a long? instead of int? for the field "LastFailure", so it is crashing on the deserialization. Please check the response here below as an example from Keycloak API.

{ "numFailures": 2, "disabled": false, "lastIPFailure": "46.193.6.176", "lastFailure": 1622463072963 }

May you please update the model and the package?

Utar94 commented 3 months ago

I am able to reproduce the error.

sps-campbellwray commented 3 months ago

@Utar94 an actively maintained fork has been made of this project, it can be found here.

Please test it out and see if your issue is resolved, if not, open an issue or a PR and we can get it fixed.