Skip to content

[bash] OAuth2 authentication method documentation #7158

@col-panic

Description

@col-panic
Description

The documentation concerning oauth2 documentation is not clear.

Swagger-codegen version

2.2.3

Suggest a fix/enhancement

Running swagger-codegen and the resulting tool leaves an output like


Authentication methods

  - Api-key - add 'api_key:<api-key>' after <operation>
              or export PETSTORE_API_KEY='<api-key>'
  - OAuth2 (flow: implicit)
      Authorization URL:
        * http://petstore.swagger.io/oauth/dialog
      Scopes:
        * write:pets - modify pets in your account
        * read:pets - read your pets

which does not help me understand on how to use the OAuth2 authentication method in order to call the resp. operations. I do still not know wether its possible or not, and if how, to configure and use the OAuth2 authentication with the bash client.

Please enhance documentation, even by (if applicable) saying that there is no intrinsic generated way to handle it or something like this!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions