Custom token authentication for Asp.NetCore 5.0+, allow access your webapi with $token
in
query string param or the Authorization
header with $token {data_access_token}
format.
How to setup?
Please refer to Setup.cs .
Usage:
-
Simply put a
$token
parameter in query string, this is the prefered;http://localhost:5000/weatherforcast?$token=your_data_access_token
-
Or put
$token {data_access_token}
in theAuthorization
header;{ "Authorization": "$token {data_access_token}" }