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

Authorization Error #2944


User avatar
0
mikemey01 created

Hi there -

While working through the .NET Core step-by-step guide I added the class permission decoration and ran the project. It seems like it throws the correct error, but not as a pop-up dialog, more as an application error. Please see attached. This isn't normal, correct?

I've added AppPermissions.cs: public const string Pages_Tenant_Phonebook = "Pages.Tenant.Phonebook"; AppAuthorizationProvider.cs: pages.CreateChildPermission(AppPermissions.Pages_Tenant_Phonebook, L("Phonebook"), multiTenancySides: MultiTenancySides.Tenant);

And decorated the PersonAppService class with: [AbpAuthorize(AppPermissions.Pages_Tenant_Phonebook)]

Thanks.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    This is only shown for development time, see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Startup/Startup.cs#L65">https://github.com/aspnetzero/aspnet-ze ... tup.cs#L65</a>.