We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When working with the protocol mappers I encounter a severe bug in the JSON implementation. This class Keycloak.Net.Models.ProtocolMappers.Config should be changed to Dictionary<string,object> Per the docs https://www.keycloak.org/docs-api/5.0/rest-api/index.html#_protocolmapperrepresentation this attribute it's type map meaning that there's not defined structure so a named based structure like the one you have is not working and will not retrieve all the information. please change it to Dictionary class: see also https://docs.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonextensiondataattribute?view=net-5.0 https://stackoverflow.com/questions/14893614/how-to-serialize-a-dictionary-as-part-of-its-parent-object-using-json-net
The text was updated successfully, but these errors were encountered:
Suggested change:
Keycloak.Net.Models.ProtocolMappers.ProtocolMapper [JsonProperty("config")] public Config Config { get; set; }
should be replaced to: [JsonProperty("config"), JsonExtensionData] public Dictionary<string, object> Config { get; set; }
Sorry, something went wrong.
I have created a new nuget package that has this fix https://www.nuget.org/packages/Keycloak.Net.Core/
No branches or pull requests
When working with the protocol mappers I encounter a severe bug in the JSON implementation.
This class Keycloak.Net.Models.ProtocolMappers.Config should be changed to Dictionary<string,object>
Per the docs https://www.keycloak.org/docs-api/5.0/rest-api/index.html#_protocolmapperrepresentation this attribute it's type map meaning that there's not defined structure so a named based structure like the one you have is not working and will not retrieve all the information.
please change it to Dictionary class:
see also
https://docs.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonextensiondataattribute?view=net-5.0
https://stackoverflow.com/questions/14893614/how-to-serialize-a-dictionary-as-part-of-its-parent-object-using-json-net
The text was updated successfully, but these errors were encountered: