Insurance Company API with JWT authentication
git clone
cd aspnetcore-mvc-jwt-webapi
dotnet run -p AspNetCore.Mvc.Jwt.WebApi
Open the app http://localhost:5000/swagger and get fun!
1.- We have to execute the endpoint /api/Account/authenticate. In this particulary case password is not required, its only necessary to fill in the username because we dont have a pasword to check
2.- The response body is the JWT token generated, so copy it!
3.- Click the Authorize button or any of the Padlock icon button
4.- We have to fill in the input with the format "Bearer 'JWT-Token'" (replacing 'JWT-Token with the token generated at the step #2)
5.- Now, we are able to consume the other services!
- Gabriel Dal Borgo - gabrieldalborgo