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

Bearer token in Application Project #5420


User avatar
0
OriAssurant created

I am making a call to WebAPI layer of the project.

Recently we added the header AbpApiAuthorize to controllers on WebAPI layer in the process of implementing token based authentication between Application project and Web API project calls.

How can I get the bearer token to add to the header before I call WebAPI project.

I am currently calling Authenticate method. But, do I need to call it every time? Or do we already have this stored in Identity or Session. If yes, how can I access it?


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

    You can take a look at this [https://aspnetzero.com/Documents/Development-Guide-Core#token-based-authentication]) document with information about Token