X Tutup
Skip to content

Check varargs null values in JWTVerifier#412

Merged
jimmyjames merged 2 commits intoauth0:masterfrom
jimmyjames:var-args-fix
Mar 25, 2020
Merged

Check varargs null values in JWTVerifier#412
jimmyjames merged 2 commits intoauth0:masterfrom
jimmyjames:var-args-fix

Conversation

@jimmyjames
Copy link
Copy Markdown
Contributor

Changes

Fixes #404

  • Check for null values on issuer and audience varargs arguments.
  • Also fixes test compile warnings for ambiguous null to vararg APIs.

References

Testing

  • This change adds test coverage

Checklist

@jimmyjames jimmyjames added CH: Fixed small This PR may require low effort to action, or contains few changes to review labels Mar 25, 2020
@jimmyjames jimmyjames requested a review from a team March 25, 2020 15:13
}
}

private static boolean checkVarargNull(String[] args) {
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.

Should this be checkVarArgNull ?

Maybe a better name might be isNullOrEmpty?

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.

Renamed to isNullOrEmpty

@jimmyjames jimmyjames requested a review from damieng March 25, 2020 15:33
@jimmyjames jimmyjames added this to the v3-Next milestone Mar 25, 2020
@jimmyjames jimmyjames merged commit 45036b9 into auth0:master Mar 25, 2020
@jimmyjames jimmyjames modified the milestones: v3-Next, 3.10.2 Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CH: Fixed small This PR may require low effort to action, or contains few changes to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue on setting audience/issuer as var-args (JWTVerifier)

2 participants

X Tutup