openapi-to-postman icon indicating copy to clipboard operation
openapi-to-postman copied to clipboard

APIs Beta Generate Collection sets Authorization on requests to "Bearer token" with no token

Open jez9999 opened this issue 3 years ago • 2 comments

See issue #70

jez9999 avatar Sep 16 '20 14:09 jez9999

@umeshp7 Opened this issue so there is an open issue for the problem. As I said in the other issue:

This behaviour still isn't useful to me - most of my endpoints do indeed specify an OAuth2 bearer token security scheme. This means that most of my endpoints are still generated with "bearer token" as the auth, and no token set by default. For each endpoint I have to manually set the token. There needs to be some way of just always inheriting auth from parent. If anything, it would be more useful to me to inherit auth from parent when a path does have a security scheme defined, and set to "no auth" if there isn't one defined.

jez9999 avatar Sep 16 '20 14:09 jez9999

Is there any update on this? I see it's from 2020. I've encountered the same issue. My openapi specification contains OAuth2 bearer token requirement.

If all requests have the same security requirement, they can easily be lumped up into "inherit from parent" which makes managing security easier.

tadeongmi avatar Mar 22 '23 17:03 tadeongmi