You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During execution of API call RestClient is missing ClientCertificates despite passing them in API client constructor as a Configuration object as in example below:
var certificate = new X509Certificate2("path", "password", X509KeyStorageFlags.UserKeySet);
var configuration = new Configuration
{
ClientCertificates = new X509CertificateCollection(new X509Certificate[] { certificate }),
};
var client = new AddressesApi(configuration);
Fix for this is quite simple - at then end of auto-generated function "MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second)" new merged Configuration variable is missing ClientCertificates assignment, please add:
I don't generate the code myself and just 100% piggy back on top of code generators I support (AutoRest, NSwag, OpenAPI Generator, Swagger Codegen CLI). I also make sure that I use the latest version of mentioned code generators to mangling with the generated code would be hard (if not impossible) to maintain
During execution of API call RestClient is missing ClientCertificates despite passing them in API client constructor as a Configuration object as in example below:
Fix for this is quite simple - at then end of auto-generated function "MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second)" new merged Configuration variable is missing ClientCertificates assignment, please add:
ClientCertificates = second.ClientCertificates ?? first.ClientCertificates
at the end of Configuration object initializer, this should fix the issue :)
The text was updated successfully, but these errors were encountered: