I'm trying to find out which is the right way to secure my web api(I am using Sql as database).
Step one: client makes a Login in application. Client sends username and password.
Asp net checks in sql database if username and password exists. If exist it sends back a token-key.
In next client's request, do i send again username and password? Or only token? Also how can i retreive token from asp net and store it inside my asp net application?
Do i need to create a list Collection and add inside the token? But this way is not thread safe.... Is there any other mechanicm? For stroring-retreiving tokens and other data from asp net application?