Skip to content

Commit 3a0b5de

Browse files
committed
Adds users.primaryemail to JWT claims
1 parent 07727e2 commit 3a0b5de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DigitalLearningSolutions.Web/Helpers/ExternalApis/TableauConnectionHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public string GetToken(string email)
4040
new Claim(JwtRegisteredClaimNames.Sub, user),
4141
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()),
4242
new Claim("scp", "tableau:views:embed"),
43-
new Claim("scp", "tableau:metrics:embed")
43+
new Claim("scp", "tableau:metrics:embed"),
44+
new Claim("users.primaryemail", email)
4445
}),
4546
Expires = DateTime.UtcNow.AddMinutes(5),
4647
SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature),

0 commit comments

Comments
 (0)