Learn Everything

Module · Backend Engineer

Authentication & Authorisation

Passwords, sessions, tokens and scopes - who is calling, and what they may do.

2 topics4 interactive tasks

TOPIC 01

Passwords & Sessions

Store the hash, not the password, and give the session the settings it deserves.

What you'll practice

  • Define a Password Policy — guided · beginner
  • Design a Session — practice · intermediate

A command you'll meet

cat ~/.auth/password-policy.yaml

Authentication is the part of a backend people get wrong quietly. Open the task below for the full walkthrough.

TOPIC 02

OAuth & Scopes

Delegated access, the scopes that bound it, and the tokens that carry it.

What you'll practice

  • Define the Scopes — practice · intermediate
  • Write the Token Policy — challenge · advanced

A command you'll meet

cat ~/.auth/scopes.yaml

A scope is a promise about what a token may do. Open the task below for the full walkthrough.