Ctrl K
Backend · Junior · Theory

What's the difference between authentication and authorization? And once a user has logged in, how does the server know who's making a request?

~4 min by voice

How to approach it

This checks whether the candidate distinguishes "who are you" from "what are you allowed to do" and understands the mechanics: how, after login, each subsequent request is tied to the user through a session or a token, and what security trade-offs that involves.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsYou're choosing between server-side sessions and JWTs for authentication in a web application. How will you choose, and what problems will you run into with each approach? Mid-levelDesign an authorization system for a B2B SaaS product where each client company has its own users, roles, and permissions to individual resources. SeniorYou have an endpoint, GET /orders/{id}, that requires authorization and returns an order. A security review said there's a hole in it. What's the most likely problem, and how do you close it? Mid-levelYou're choosing between stateless JWTs and server-side sessions for a web application and a mobile client. How would you make the decision? Senior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min