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

(fix): support audiences on query parameters #4067

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

dsinghvi
Copy link
Member

Previously audiences were only respected on inlined request parameters, but not query parameters.

@dsinghvi dsinghvi marked this pull request as ready for review July 16, 2024 13:34
for (const audience of this.audiences.audiences) {
const parametersByAudience = queryParametersNode.parametersByAudience[audience];
if (parametersByAudience != null) {
parametersForEndpoint.forEach((parameter) => {
Copy link
Member

Choose a reason for hiding this comment

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

Should this be the following?

Suggested change
parametersForEndpoint.forEach((parameter) => {
parametersByAudience.forEach((parameter) => {

if (properties == null) {
// No audiences were configured.
Copy link
Member Author

Choose a reason for hiding this comment

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

@amckinney how does this check differ from if the value is undefined vs. the value is not present in the map?

@dsinghvi
Copy link
Member Author

Going to merge for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants