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

Set the default Authorization Type to 'Inherit from Parent' #271

Closed
alexibz opened this issue Jul 30, 2020 · 2 comments · Fixed by #728 · May be fixed by #451
Closed

Set the default Authorization Type to 'Inherit from Parent' #271

alexibz opened this issue Jul 30, 2020 · 2 comments · Fixed by #728 · May be fixed by #451

Comments

@alexibz
Copy link

alexibz commented Jul 30, 2020

It would be really nice if there was an option to set all the requests to have an authorization type of Inherit auth from parent

@VShingala
Copy link
Member

@alexibz Did you mean that Inherit auth from parent to be set when no security scheme is mentioned for operation in OpenAPI spec, or just overriding security scheme mentioned in all operations in OpenAPI spec.

Currently we follow behaviour where if you have no security object mentioned for operation, Auth is set to Inherit auth from Parent and when security object is mentioned we handle that appropriately.

@VShingala VShingala added auth Issue relates to Authorization of generated collection/request. security-object and removed auth Issue relates to Authorization of generated collection/request. labels Sep 28, 2020
@alexibz
Copy link
Author

alexibz commented Sep 28, 2020

Just overriding the security scheme mentioned in all operations in the OpenApi spec. The use case we have is that we have the same security schemes (basic auth and bearerToken) across all endpoints, but the "scopes" across the endpoints are different.

AndrewGuenther added a commit to AndrewGuenther/openapi-to-postman that referenced this issue Jan 22, 2022
This option forces all requests to inherit auth from the top of the
collection. This is really useful when all requests should be using the
same authentication. If authentication is called out on each request in
the Postman app, they will not inherit the options set on the
collection, like the token, and must all be set manually. By allowing
all requests to simply inherit from the collection, the token can be set
once at the top of the collection and all requests will use it
automatically.

Fixes postmanlabs#271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants