Closed Richasy closed 1 year ago
Thanks Richasy for opening a Pull Request! The reviewers will test the PR and highlight if there is any merge conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌
Hey @Richasy just noticed your main
is fairly out-of-date. Rebased this PR here, but be sure to stay in sync.
@Sergio0694 any thoughts on the initialization vs. null for better nullability practices here?
The current setup seems fine, given the type already exists and it's public, and it's already mutable. Making those two empty dictionaries makes sense to avoid callers having to check for null
, and being able to easily add/remove keys.
If this was being designed from scratch though, I'd recommend:
class
, not a struct
, since it's pretty large (4 reference fields)ReadOnlyDictionary<TKey, TValue
instance to avoid extra allocations whenever there were no available keys.Given we can't make breaking changes and the existing code though, changes here seems ok 🙂
Fixes #
Support users to inject properties when building WebTokenRequest internally. In addition, sometimes the properties applicable to MSA do not support AAD, so the two are separated for injection separately.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Users cannot intervene in the construction process of WebTokenRequest.
What is the new behavior?
Support adding custom properties when constructing WebTokenRequest.
PR Checklist
Please check if your PR fulfills the following requirements:
Other information