fix #1389 - exception in PrincipalValidator
This commit is contained in:
		| @ -25,7 +25,7 @@ namespace Oqtane.Security | ||||
|                     if (alias != null) | ||||
|                     { | ||||
|                         // verify principal was authenticated for current tenant | ||||
|                         if (context.Principal.Claims.First(item => item.Type == ClaimTypes.GroupSid)?.Value != alias.AliasId.ToString()) | ||||
|                         if (context.Principal.Claims.FirstOrDefault(item => item.Type == ClaimTypes.GroupSid)?.Value != alias.AliasId.ToString()) | ||||
|                         { | ||||
|                             // tenant agnostic requests must be ignored  | ||||
|                             string path = context.Request.Path.ToString().ToLower(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker