Base solution for your next web application
Open Closed

Token Based Auth on BoilerPlate Framework #774


User avatar
0
ernblghan created

Hi,

According to your answer about below links question I try to use Token Based Auth.

http://forum.aspnetboilerplate.com/viewtopic.php?p=1627

But We dont use module zero, just ABP. In Initialize method, you set HttpConfigurations with this code.

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

But i cannot register HttpConfigurations with this code. How can i resolve that.

Thanks.


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

    Hi,

    It's not related to AspNet Zero, for your problem.

    AbpWebApi() is an extension method defined in Abp.Configuration.Startup namespace. Have you added this namespace to your class? If there is no such a method, you may using very old Abp version.

    Also, are you using ASP.NET Identity (<a class="postlink" href="http://www.asp.net/identity">http://www.asp.net/identity</a>)? Our solution is a bit based on it.