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
But using DefaultHeaders seems to work. This is counter intuitive - the AccessToken configuration property should either be fixed or removed.
// This works but it is uglyvarconfiguration=new Configuration
{DefaultHeaders=newDictionary<string,string>{{"Authorization",$"Bearer {accessToken}"}}}
Bug Report Checklist
Description
Using either of these two configurations does not set the
Authorization: Bearer <access_token>
header.But using
DefaultHeaders
seems to work. This is counter intuitive - theAccessToken
configuration property should either be fixed or removed.openapi-generator version
openapitools/openapi-generator-cli:latest
OpenAPI declaration file content or url
https://api.signicat.com/info/lookup/swagger/v1/swagger.json
Generation Details
docker run --rm --volume "${PWD}:/generated" openapitools/openapi-generator-cli generate \ -i https://api.signicat.com/info/lookup/swagger/v1/swagger.json \ -g csharp \ -o /generated \ --additional-properties=targetFramework=net8.0
Steps to reproduce
AccessToken
configuration property or by theApiKeyPrefix
+ApiKey
configuration properties.Authorization: Bearer <access_token>
is not presentRelated issues/PRs
Suggest a fix
Remove the non-working configuration properties or fix them.
The text was updated successfully, but these errors were encountered: