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

Suppress Authorization for method in CommonLookupAppService #2446


User avatar
0
sparkyjr created

I have added some methods to CommonLookupAppService. The CommonLookupAppService has the AbpAuthorize attribute, indicating that only authorized users can access this service methods.

Now, I want to suppress authorization for a method in this CommonLookupAppService. I tried using AbpAllowAnonymous and AllowAnonymous attributes, but unfortunately these attributes aren't available in the project.

How do I suppress authorization for a method in any service, which has AbpAuthorize attribute?


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

    Hi,

    You need to use AbpAllowAnonymous attribute for this. Which version of ABP do you use in your project ? This attribute should be available for ABP v0.10.0 and higher versions.