Skip to content

Commit 99d23a1

Browse files
authored
Can't get "userTenantId".
specified uri is incorrect.
1 parent 3fd86f8 commit 99d23a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorial/04-add-aad-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ Now that you can get tokens, it's time to implement a way to store them in the a
414414
var userObjectId = user.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value ??
415415
user.FindFirst("oid").Value;
416416

417-
var userTenantId = user.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value ??
417+
var userTenantId = user.FindFirst("http://schemas.microsoft.com/identity/claims/tenantid").Value ??
418418
user.FindFirst("tid").Value;
419419

420420
if (!string.IsNullOrEmpty(userObjectId) && !string.IsNullOrEmpty(userTenantId))

0 commit comments

Comments
 (0)