api - Inter-service auth -
i have public facing restful crud api authenticates users via bearer token in authorization header. have second worker process runs in background , creates records on behalf of various users. i'd worker process post data crud api instead of directly database since api service handles validation, etc.
what's best way authenticate worker process? i'd authorize worker sort of "admin" can create/update/delete records user i'm not sure best way authenticate it. basic auth appropriate here global "admin" password?
thanks!
you mentioned creates records on behalf of various users when does not have access bearer token? if has access pass bearer token public rest crud api.
Comments
Post a Comment