Skip to content

Commit bea143f

Browse files
Jose Marcenaromikecp
authored andcommitted
Allow local API when using AspNetCore identity
1 parent e7da855 commit bea143f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Umbraco.Web.Common/Authorization/FeatureAuthorizeHandler.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ protected override Task HandleRequirementAsync(AuthorizationHandlerContext conte
4747
break;
4848
}
4949

50+
case Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationFilterContext:
51+
{
52+
IEndpointFeature endpointFeature = authorizationFilterContext.HttpContext.Features.Get<IEndpointFeature>();
53+
endpoint = endpointFeature.Endpoint;
54+
break;
55+
}
56+
5057
case Endpoint resourceEndpoint:
5158
{
5259
endpoint = resourceEndpoint;

0 commit comments

Comments
 (0)