-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw ArgumentException for malformed authorities (#4347)
* Throw argument exceptions for consistency when authority or tenant are invalid. Update method comments. * Update and add tests. * Apply suggestions from code review Co-authored-by: Den Delimarsky <53200638+localden@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com> * Small test fixes. * Update comments. --------- Co-authored-by: Den Delimarsky <53200638+localden@users.noreply.github.com> Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
- Loading branch information
1 parent
b259cf0
commit 474026f
Showing
21 changed files
with
320 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
474026f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'TokenCacheTestsWithCache'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.Microsoft.Identity.Test.Performance.TokenCacheTests.RemoveAccountAsync_TestAsync(CacheSize: (10000, 10))
235532.35
ns (± 24051.045424316406
)164692.43636363637
ns (± 4618.252574632275
)1.43
This comment was automatically generated by workflow using github-action-benchmark.
474026f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'AcquireTokenNoCache'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.Microsoft.Identity.Test.Performance.AcquireTokenNoCacheTests.AcquireTokenForClient_TestAsync
728166.0721649484
ns (± 479141.5139465203
)381486.5319148936
ns (± 14794.855089657327
)1.91
Microsoft.Identity.Test.Performance.AcquireTokenNoCacheTests.AcquireTokenOnBehalfOf_TestAsync
721329.5348837209
ns (± 217295.77053536402
)520742.75
ns (± 10230.99661160469
)1.39
This comment was automatically generated by workflow using github-action-benchmark.
474026f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'AcquireTokenNoCache'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.Microsoft.Identity.Test.Performance.AcquireTokenNoCacheTests.AcquireTokenOnBehalfOf_TestAsync
859902.6170212766
ns (± 421553.6423980162
)520742.75
ns (± 10230.99661160469
)1.65
This comment was automatically generated by workflow using github-action-benchmark.