REST API - API first approach

by Armaghan Saqib, Thursday, January 05, 2023, 15:02 (476 days ago) @ stoldo

Hi Severin,

I think per database api is ok instead of per-user authentication.

My recommendation is to store it in defaults table in database and then simply match it with the api key sent in the api request.

This apikey can be generated and stored in the defaults table by user by clicking some button like 'Add / Update key' button on defaults screen.

md5_base64 hash of database name contcateted with current time is a good idea to generate a key or something else like mentioned on this page: https://stackoverflow.com/questions/2468012/how-can-i-generate-a-unique-id-using-a-hash...

Is that ok?

Regards


Complete thread:

 RSS Feed of thread