One or more errors occurred. (The converter specified on 'VaultSharp.V1.SecretsEngines.OpenLDAP.StaticCredentials.RotationPeriod' is not compatible with the type 'System.Int32'.)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Vault.Ldap.GetCredentials(Uri uri, String token, String role, String mount) in D:\Vault\Ldap.cs:line 20
at Vault.FunctionalTests.LdapTest.ShouldGetCredentials() in D:\Vault\FunctionalTests\LdapTest.cs:line 16
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Any additional info
I reverted #312 locally by removing [JsonConverter(typeof(IntegerToStringJsonConverter))] from the RotationPeriod variable in \VaultSharp\V1\SecretsEngines\OpenLDAP\StaticCredentials.cs and the error is no more
Describe the bug When requesting a static crendentials, VaultSharp fails to convert the rotation period
VaultSharp Version 1.13.0.1
Vault Version 1.15.4
Does this work with Vault CLI? Yes
Sample Code Snippet
Exception Details/Stack Trace/Error Message
Any additional info I reverted #312 locally by removing
[JsonConverter(typeof(IntegerToStringJsonConverter))]
from theRotationPeriod
variable in\VaultSharp\V1\SecretsEngines\OpenLDAP\StaticCredentials.cs
and the error is no moreEdited sample data :