openapi-generator/modules
davidwcarlson ef7b28de00 fix 457 Support for Bearer Auth (#1930)
* fix #457 by introducing an HttpBearerAuth object

See https://github.com/OpenAPITools/openapi-generator/issues/457
Also https://github.com/OpenAPITools/openapi-generator/issues/1446 for typescript, https://github.com/OpenAPITools/openapi-generator/issues/1577 for python

Specs defined as follows currently generate BasicAuth and send an "Authorization: Basic [base64Encode(username + ":" + password)]" header
    components:
      securitySchemes:
        bearer:
          type: http
          scheme: bearer

This change will generate code which uses a new HttpBearerAuth class, which will send a "Authorization: [scheme] [accessToken]" header.
This change is slightly larger and more impactful than simply using OAuth for bearerBearer, but it allows for scheme values other than bearer.

This fix was enabled by the recent commit of 80ca67cfda

This PR is an alternative to https://github.com/OpenAPITools/openapi-generator/pull/1972

* update petstore samples

* Update HttpBearerAuth mustache templates and samples

* correct the expected number of generated java client files

* update the retrofit2 HttpBearerAuth template and samples

* Add resttemplate-specific HttpBearerAuth mustache and samples

* add vertx-specific HttpBearerAuth template and samples

* add java webclient-specific HttpBearerAuth template and samples
2019-02-09 22:51:44 +08:00
..
openapi-generator fix 457 Support for Bearer Auth (#1930) 2019-02-09 22:51:44 +08:00
openapi-generator-cli Set version to 4.0.0-SNAPSHOT 2019-02-01 00:03:51 +01:00
openapi-generator-gradle-plugin Set version to 4.0.0-SNAPSHOT 2019-02-01 00:03:51 +01:00
openapi-generator-maven-plugin Set version to 4.0.0-SNAPSHOT 2019-02-01 00:03:51 +01:00
openapi-generator-online Set version to 4.0.0-SNAPSHOT 2019-02-01 00:03:51 +01:00