How to DisableAbpAuthorize Call AbpDynamicWebapi
See original GitHub issue[AbpAuthorize]
public class CompanyAppService : SurveyAppServiceBase, ICompanyAppService
{
private readonly ISurveyRepository _surveyRepository;
public CompanyAppService(ISurveyRepository surveyRepository)
{
_surveyRepository = surveyRepository;
}
[DisableAbpAuthorize]
public dynamic GetCompanyList([FromUri] CompanySearchDto dto)
{
int total = 0;
var result = _surveyRepository.GetCompanyList(dto, out total);
var data = new
{
total,
rows = result
};
return data;
}
}
I want to DisableAbpAuthorize
call GetCompanyList()
.
I want disable it from that method and keep it enabled in the others.
How should do it.
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Authenticate and Authorize Calls to the Access ...
Complete the steps below to authenticate and authorize a call to the Access Management API: Create a custom role with the required permissions....
Read more >Manage API Keys
Disable —Deactivates the calls using that key temporarily, but does not remove the key; Enable—Re-enables a deactivated key; Delete—Removes the key permanently.
Read more >API Clients
This page describes how to create and use the API Clients identity type to provide secure access to the Controller through AppDynamics Controller...
Read more >Application Permissions
Click Can Create Applications to grant the role permission. Under Default Permissions, select the default permissions for this role: View, Edit, or Delete....
Read more >How do I enable or disable synthetic jobs programmatically ...
For dealing with synthetic jobs, use the https://api.eum-appdynamics.com endpoint to make changes to the schedule, and either enable or disable jobs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll implement this in next release (v0.10.0)
Added AbpAllowAnonymous attribute that can be used for a method if it’s class has AbpAuthorize attribute. This is true for application layer (app services).
For MVC, Web API and ASP.NET Core MVC controllers, just use [AllowAnonymous] of these frameworks.