React to AuthZ change
This commit is contained in:
parent
ae815475b8
commit
6008b57d0f
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Sockets.Internal
|
||||||
// This will set context.User if required
|
// This will set context.User if required
|
||||||
var authenticateResult = await policyEvaluator.AuthenticateAsync(authorizePolicy, context);
|
var authenticateResult = await policyEvaluator.AuthenticateAsync(authorizePolicy, context);
|
||||||
|
|
||||||
var authorizeResult = await policyEvaluator.AuthorizeAsync(authorizePolicy, authenticateResult, context);
|
var authorizeResult = await policyEvaluator.AuthorizeAsync(authorizePolicy, authenticateResult, context, resource: null);
|
||||||
if (authorizeResult.Succeeded)
|
if (authorizeResult.Succeeded)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue