MugUp logoMugUp
HomeBrowseAboutBlog
LoginSign Up
MugUp

Plan your day, study, read, write and track your habits in one app.

Follow MugUp

Product

  • Features
  • Compare
  • Free Tools
  • Deck Library
  • MugUp for Discord

Community

  • Blog
  • Changelog
  • Feature Requests
  • Deck Requests

Company

  • Home
  • About
  • Contact

© 2026 MugUp. All rights reserved.

Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Backend Engineering Fundamentals
  3. Authentication and Authorization
Public deck

Backend Engineering Fundamentals

Everything that goes into building a correct, fast, safe backend service: HTTP and REST, auth, SQL, indexing, transactions, and the caching/queueing patterns that keep it standing up. Language- and vendor-agnostic.

Engineering
AShared by Alex Chen
1Sign in to add this deckTry itSign in to clone

Add it to your projects to study it here with your progress saved. Try it plays a round and saves nothing. Clone makes your own copy that you can change.

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

Authentication and Authorization

Proving who a caller is and deciding what they may do: sessions versus tokens, how JWTs really work, cookie hardening, password storage, and the OAuth 2.0 / OpenID Connect flows worth knowing.

Try this topicBack to deck

Content

43 total questions

MCQ: 10
Fill-in: 7
Flashcards: 14
Pair match: 12
Authentication and Authorization – Flashcards
Flashcards

Card #1

What is the difference between authentication and authorization?

Card #2

How does server-side session authentication work?

Card #3

What are the three parts of a JWT?

11 more questions in this game

Showing 3 of 14. Sign up free to see the rest.

Sign up freeLog in
Authentication and Authorization – MCQ
Multiple Choice Questions
  1. 1. A JWT library accepts any token whose header says "alg": "none". What can an attacker do?

    • Read the claims, but never change them without a key
    • Forge a token with any claims and no signature at all
    • Replay old tokens, but only until their exp time passes
    • Nothing, because the library still checks the payload
  2. 2. An API verifies RS256 tokens, but its library lets the token header pick the algorithm. An attacker switches the header to HS256. What is the attack?

    • Signing the token with HMAC, using the public key as the secret
    • Removing the signature part so that only the payload is checked
    • Brute-forcing the RSA private key from a few captured tokens
    • Replaying an RS256 token after changing only its exp claim
  3. 3. A nightly billing job calls an internal API with no user involved. Which OAuth 2.0 grant fits?

    • Authorization code grant
    • Resource owner password grant
    • Implicit grant with a short token
    • Client credentials grant
7 more questions in this game

Showing 3 of 10. Sign up free to see the rest.

Sign up freeLog in
Authentication and Authorization – Fill-in-the-blank
Fill in the Blank
  1. 1. An API client sends its access token in the ___ header, as the word Bearer followed by the token.

    Answer:Authorization

    Hint: An HTTP request header name

  2. 2. OAuth ___ limit what an access token may do, for example read-only access to a calendar.

    Answer:scopesalso: scope

    Hint: Requested by the client, shown on the consent screen

  3. 3. Comparing a secret token with ordinary string equality can leak it through a ___ attack, so use a constant-time comparison.

    Answer:timingalso: timing side-channel

    Hint: The attacker measures how long each comparison takes

4 more questions in this game

Showing 3 of 7. Sign up free to see the rest.

Sign up freeLog in
Authentication and Authorization – Pair match
Pair Match
OAuth state parameter↔Random value tying a callback to the session that started it
OIDC nonce↔Value in the ID token that stops an old login being replayed
sub claim↔Stable identifier of the user the token is about
9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in