X Tutup
Skip to content

Added additional conditions on varargs to make sure given varargs or …#405

Closed
ssrm wants to merge 5 commits intoauth0:masterfrom
ssrm:fix-audience-issuer-null
Closed

Added additional conditions on varargs to make sure given varargs or …#405
ssrm wants to merge 5 commits intoauth0:masterfrom
ssrm:fix-audience-issuer-null

Conversation

@ssrm
Copy link
Copy Markdown

@ssrm ssrm commented Mar 10, 2020

…not null

Changes

Please describe both what is changing and why this is important. Include:

If there is no aud/iss field in token, its a breaking change for the apps. In my case, we do not maintain audience field in token. Let me know if this is ok.

References

Please include relevant links supporting this change such as a:

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds test coverage
  • This change has been tested on the latest version of Java or why not

Checklist

@ssrm ssrm requested a review from a team March 10, 2020 00:55
@jimmyjames jimmyjames requested review from jimmyjames and removed request for a team March 18, 2020 16:45
}
boolean isAllNull = true;
for (String arg: args) {
if (arg != null && arg.trim().length() != 0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's not check for empty strings here, just null. That will be consistent with how we handle empty strings for other claims.

@jimmyjames jimmyjames added small This PR may require low effort to action, or contains few changes to review waiting for customer This issue is waiting for a response from the issue or PR author labels Mar 23, 2020
@jimmyjames
Copy link
Copy Markdown
Contributor

I've taken the basis of this PR with another PR that is similar, except it does allow empty string values. #412

@jimmyjames jimmyjames closed this Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small This PR may require low effort to action, or contains few changes to review waiting for customer This issue is waiting for a response from the issue or PR author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup