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

How to implement HostAuthenticationFilter("Bearer") in API #1759


User avatar
0
ramanan created

How to implement HostAuthenticationFilter("Bearer") in Api controllers inherited from AbpApiController like the following that we do for dynamic api ?

Configuration.Modules.AbpWebApi().HttpConfiguration.Filters.Add(new HostAuthenticationFilter("Bearer"));

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

    Probably you should add it to controllers as attribute. Another option can be registering it as a global filter. You can find docs on the web for this topics, since this is not unique to ABP.