lvermeulen / Keycloak.Net

C# client for Keycloak 6.x
MIT License
203 stars 120 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 1 month ago

I am able to reproduce the error.

sps-campbellwray commented 1 month 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.