I need to add authorization to my asp.net core api and is wondering which one to choose.
Basically my needs are: the caller provides a key and a password (in the header) which I need to authorize against a table in an external database.
I then use the id to check if the caller has rights to the specific client. All objects in the database belongs to a client.
I've read about Simple authorization and it looks to provide all I need. Except I want to be able to add an overall authentication to all calls and not have to add the variables Key and Password to every function. Is this possible?
Any tips will be highly appreciated!