Skip to content
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

[Java] Add support for Bearer Auth #1930

Merged
merged 10 commits into from
Feb 9, 2019
Merged

Commits on Jan 24, 2019

  1. fix OpenAPITools#457 by introducing an HttpBearerAuth object

    See OpenAPITools#457
    Also OpenAPITools#1446 for typescript, OpenAPITools#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 OpenAPITools@80ca67c
    
    This PR is an alternative to OpenAPITools#1972
    davidwcarlson committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    d3c0afc View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2019

  1. Configuration menu
    Copy the full SHA
    d1f356d View commit details
    Browse the repository at this point in the history
  2. update petstore samples

    wing328 committed Jan 27, 2019
    Configuration menu
    Copy the full SHA
    2dc9f5c View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2019

  1. Configuration menu
    Copy the full SHA
    3e21e06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfdd07d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    17e0c37 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8c55b4b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fb46ef2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    485a738 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    53566cb View commit details
    Browse the repository at this point in the history