[csharp][generichost] Allow multiple auth methods of same type (#17129)

* allow multiple auth methods of same type

* allow multiple auth methods of same type
This commit is contained in:
devhl-labs
2023-11-26 08:46:48 -05:00
committed by GitHub
parent 8bea7f7377
commit ad95d551ed
50 changed files with 405 additions and 245 deletions

View File

@@ -410,6 +410,10 @@ namespace Example
config.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("api_key", "Bearer");
// Configure API key authorization: api_key_query
config.AddApiKey("api_key_query", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new PetApi(config);
var petId = 789L; // long | ID of pet to return
@@ -463,7 +467,7 @@ catch (ApiException e)
### Authorization
[api_key](../README.md#api_key)
[api_key](../README.md#api_key), [api_key_query](../README.md#api_key_query)
### HTTP request headers