question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 8 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hikalkancommented, Jul 1, 2016

I’ll implement this in next release (v0.10.0)

0reactions
hikalkancommented, Jul 3, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found