Skip to main content
1:1 mock interviews with Sumit, scored on a real hiring rubric.Book a slot →

5 topics · 0/5 read

Authentication & Security

Authentication vs authorization, sessions vs JWT, OAuth 2.0 and OpenID Connect, password hashing, the OWASP risks (injection, XSS, CSRF, SSRF) and rate limiting.

  1. Authentication: Sessions vs JWT

    Authentication proves who the user is; authorization decides what they may do. The two common ways to keep a user logged in are server-side sessions and JSON Web Tokens. Interviewers expect you to compare them honestly,

    Read now
  2. OAuth 2.0, OpenID Connect and SSO

    OAuth 2.0 lets an app act on a user's behalf without their password; OpenID Connect adds login on top of it. "Sign in with Google" is the example everyone knows, and interviewers ask you to walk through the Authorization

    Read now
  3. Storing Passwords Safely

    Passwords must never be stored in plain text or with fast hashes like MD5 or SHA-256. Store them with a slow, salted password hash such as Argon2id or bcrypt, so a leaked database does not become a list of passwords.

    Read now
  4. Web Security: Injection, XSS, CSRF and SSRF

    Backend security interviews revolve around the OWASP Top 10. You should explain SQL injection, cross-site scripting, cross-site request forgery and server-side request forgery, and show the fix for each in code.

    Read now
  5. Rate Limiting and Throttling

    Rate limiting caps how many requests a client can make in a time window. It protects login endpoints from brute force, keeps one customer from hurting others, and controls costs. Interviewers often ask you to design a di

    Read now