Discussion

Ask HN: How do you do authorization for background jobs?

When a flow is directly triggered by a users action, we have the Cookie/Token of the user to do AuthN/AuthZ.

However when we need to run background jobs or some asynchronous workflow on behalf of the user, we do not have the Cookie/Token of the user. We do have the user id but not the session. How do you solve for AuthZ specifically for your background jobs and dependent microservices?

3 points ratpik 4 years ago 2 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton