-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][csharp-netcore] bearerAuth is interpreted as basicAuth #5915
Labels
Comments
5 tasks
5 tasks
Looks like it is still not fixed in async client |
5 tasks
@codemnk the fix has been merged into master. Please give it another try. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I added a bearer authentication in my description according to the the swagger docs:
But for some reasons the generated code contains an basicAuth with username/password instead of the bearer expected as
Authorization: Bearer <token>
:DefaultApi.cs
:openapi-generator version
I use the docker image:
OpenAPI declaration file content or url
Gist
Command line used for generation
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i https://gist.githubusercontent.com/FaFre/b15e59572a974a9f453d14e5cdaf3bec/raw/d40a46cb20d70dd41abbf19691745f2ffb5a1f04/test.json -g csharp-netcore -o /local/
The text was updated successfully, but these errors were encountered: