-
Notifications
You must be signed in to change notification settings - Fork 340
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
Added Tenant ID to WwwAuthenticateParameters #2922
Conversation
8db5608
to
a3a96d2
Compare
...t.Identity.Test.Integration.netfx/HeadlessTests/WwwAuthenticateParametersIntegrationTests.cs
Show resolved
Hide resolved
a3a96d2
to
80154b5
Compare
80154b5
to
b272556
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM
Thanks @abatishchev
One feedback/comment for @bgavrilMS
src/client/Microsoft.Identity.Client/WwwAuthenticateParameters.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/WwwAuthenticateParameters.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/WwwAuthenticateParametersTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/WwwAuthenticateParametersTests.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/WwwAuthenticateParameters.cs
Outdated
Show resolved
Hide resolved
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.
See the 2 comments related to Jean-Marc's ask
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.
LGTM
/// <summary> | ||
/// Gets Azure AD tenant ID. | ||
/// </summary> | ||
public string GetTenantId() => Instance.Authority |
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.
So we kept it?
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.
Yes. If we want to rip it up into a different package, we can either:
- not take this method along and instead make it into an extension method to avoid any breaking changes in MSAL
OR - move
GetTenantId
to the new package, but provide a different implementation for it.
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.
@bgavrilMS @jmprieur Following up on this - are we taking this as-is or refactoring needed before release?
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 it's fine as is for now. If we introduce support for other authorities, this will have to return null. If we need to extract a package from this logic, we can leave this method behind.
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.
yeah .. never mind
Changes proposed in this request
TenantID
toWwwAuthenticateParameters
Authority
to parseauthority uri
Testing
Performance impact