Merge pull request #1392 from sbwalker/dev
fix #1389 - exception in PrincipalValidator
This commit is contained in:
commit
80c82a9ec3
|
@ -25,7 +25,7 @@ namespace Oqtane.Security
|
||||||
if (alias != null)
|
if (alias != null)
|
||||||
{
|
{
|
||||||
// verify principal was authenticated for current tenant
|
// 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
|
// tenant agnostic requests must be ignored
|
||||||
string path = context.Request.Path.ToString().ToLower();
|
string path = context.Request.Path.ToString().ToLower();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user