OIDC improvements

This commit is contained in:
Shaun Walker
2022-03-21 09:12:18 -04:00
parent 1a86b80c61
commit 4b19059df1
7 changed files with 29 additions and 255 deletions

View File

@ -134,7 +134,7 @@ namespace Oqtane.Security
{
identity.AddClaim(new Claim(ClaimTypes.Name, user.Username));
identity.AddClaim(new Claim(ClaimTypes.PrimarySid, user.UserId.ToString()));
identity.AddClaim(new Claim(ClaimTypes.GroupSid, alias.AliasId.ToString()));
identity.AddClaim(new Claim(ClaimTypes.GroupSid, alias.SiteKey));
if (user.Roles.Contains(RoleNames.Host))
{
// host users are site admins by default