-
Notifications
You must be signed in to change notification settings - Fork 218
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
use clientinfo endpoint to determine home object id and home tenant i… #177
Conversation
…d for guest scenarios
private const string Uid = "Uid"; | ||
private const string Utid = "Utid"; |
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.
These two can still use TestConstants. The tests don't depend on the actual value.
@@ -11,33 +11,45 @@ public class ClaimsPrincipalExtensionsTests | |||
{ | |||
private const string Name = "name-value"; | |||
private const string NameV1 = "name_V1-value"; | |||
private const string ObjectId = "objectId-value"; |
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.
👍 for moving stuff into constants.
@@ -265,25 +277,25 @@ public void GetLoginHint_NoNameClaims_ReturnsNull() | |||
[Fact] | |||
public void GetMsalAccountId_WithNeededClaims_ReturnsFormattedMsalId() | |||
{ | |||
var b2cPattern = $"{Utid}.{Tid}"; | |||
var aadPattern = $"{Oid}.{Tid}"; | |||
var b2cPattern = $"{TestConstants.Uid}-{TestConstants.B2CSignUpSignInUserFlow}.{TestConstants.Utid}"; |
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.
👍 good update.
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 @jennyf19
Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com>
Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com>
Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com>
Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com>
Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com>
…d for guest scenarios
Fix for #18