Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Request origin does not have permission to access the resource #9658


User avatar
0
smry created
  • What is your product version? 9.1.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .NET Core

We do not have a way of replicating event to get the application into a failed state, but currently the application access all methods except one The errors we get are listed below: pNetCore.Cors.Infrastructure.CorsService - Request origin https://tenant1.mysite.com:12345 does not have permission to access the resource.

Mvc.Authorization.AbpAuthorizationFilter - Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
   at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(IEnumerable`1 authorizeAttributes)
   at Abp.Authorization.AuthorizationHelper.CheckPermissionsAsync(MethodInfo methodInfo, Type type)
   at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(MethodInfo methodInfo, Type type)
   at Abp.AspNetCore.Mvc.Authorization.AbpAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)
Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
   at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(IEnumerable`1 authorizeAttributes)
   at Abp.Authorization.AuthorizationHelper.CheckPermissionsAsync(MethodInfo methodInfo, Type type)
   at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(MethodInfo methodInfo, Type type)

What do we have to do to reset all connections? I found and cleared the AbpUserTokens table and based on comments from https://github.com/aspnetzero/aspnet-zero-core/issues/3368 - since it sounds like Tokens are cleared out after they expire anyway.

If I wanted to clear out all cache from the application, what tables and actions should we take?


1 Answer(s)
  • User Avatar
    0
    smry created

    Internal Dev issue, accidental log-off method triggered mid processing which cleared AbpUserTokens access token