Skip to content

Added alwaysInheritAuthentication option to v2 - #728

Merged
SahilChoudhary22 merged 5 commits into
developfrom
feature/add-inherit-authentication-support-for-v2
Jun 7, 2023
Merged

Added alwaysInheritAuthentication option to v2#728
SahilChoudhary22 merged 5 commits into
developfrom
feature/add-inherit-authentication-support-for-v2

Conversation

@SahilChoudhary22

Copy link
Copy Markdown
Contributor

Description

A big Thanks to @AndrewGuenther for raising the above mentioned PR!

Comment thread lib/schemaUtils.js Outdated
// handling authentication here (for http type only)
authHelper = this.getAuthHelper(openapi, operation.security);
if (options.alwaysInheritAuthentication) {
authHelper = this.getAuthHelper(openapi, openapi.security);

@VShingala VShingala Jun 1, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SahilChoudhary22 In case when this is true, should we simply be using auth as Inherit from parent rather than defining it the same as parents? i.e. Value of authHelper should be undefined same as what's done in v2?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VShingala Correct! Asked the same doubt from user on the parent PR. Missed it in this PR. Have fixed with the following commit - a942449

Comment thread lib/schemaUtils.js Outdated
@SahilChoudhary22
SahilChoudhary22 merged commit 46ed506 into develop Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set the default Authorization Type to 'Inherit from Parent'

2 participants