Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Support Tenant Id Challenges / Hints #21378
Support Tenant Id Challenges / Hints #21378
Changes from 11 commits
c6f77b7
77ef7f4
08265aa
a06206a
c7ce340
4f01bb6
437237b
e0f4694
95c9d40
fed5849
afd81f1
4c1c382
7a13b9a
cca02ba
aba8dde
e60928f
75a6fd3
76e4a8f
21779f4
17c8e72
a565ecf
407337a
3f6a988
dba065b
18d9753
2d78abd
f94183a
0807556
6a4a77c
59f2c7d
66d0803
49f572e
58fca22
559dc80
ced4693
d472066
11f2e4c
868b336
e4c3e65
8425bcd
983f9cf
34945cd
a2882e4
6762805
6328e3d
cc41a83
4f3bb70
499e54b
5444660
38ffc87
47f5509
3896a8a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Generally we only read the options in the constructor and cache the fields rather than caching the entire options object. This way if the values of the options object change after construction the credential behavior doesn't change.
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.
I mainly did this so that the options could be passed to the
TenantIdResolver
. I could also just save off thePreferClientConfiguredTenantId
property on the options, but I thought this allowed the logic in the resolver to stay a bit more encapsulated.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.
I think we should capture
AllowMultiTenantAuthentication
from the options to avoid changing behavior after the credential is constructed.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.
use ternary?
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.
Is there a benefit other than style?
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.
Nope, no other benefit.