How to set the use of "credentials" with csharp or csharp-dotnet2 client?
Created by: JFCote
Description
This is not a bug, it is only a question.
I'm a common user of different typescript clients like jQuery and Fetch. In those clients, when I create the client, I can specify via the options that I want to use the credentials in the session. A typical use case is that there is a function called "login" in the api and after that, if in the session we have the credentials, keep them and you have now access to other calls.
For example, in typescript-jquery:
this.brandApi = new BrandApi(path, null, {
xhrFields: {"withCredentials": true}
});
Or in typescript-fetch, I pass this in the options:
{credentials: "include"}
How are we supposed to do that in the csharp
and csharp-dotnet2
client generators?
I'm tagging c# technical committee. This could be added in a FAQ somewhere too :) @mandrean (2017/08) @jimschubert (2017/09)