Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

Python and FastAPI

Module 25 · Authentication and security

Authentication vs authorisation, password hashing, JWT, OAuth2 in FastAPI, roles and scopes, API keys, OWASP risks and rate limiting.

8 lessons Follow in order
Use the button below to sign in and unlock lessons.
Your path

Lessons in sequence

Work through these in order—each lesson builds on the previous one.

  1. Lesson 1 of 8

    25.1 Authentication vs authorisation

    Enroll to open · 24 min read

  2. Lesson 2 of 8

    25.2 Password hashing: bcrypt and Argon2

    Enroll to open · 26 min read

  3. Lesson 3 of 8

    25.3 JSON Web Tokens explained from scratch

    Enroll to open · 28 min read

  4. Lesson 4 of 8

    25.4 OAuth2 password flow and login endpoints in FastAPI

    Enroll to open · 30 min read

  5. Lesson 5 of 8

    25.5 Protecting routes: roles and permissions

    Enroll to open · 28 min read

  6. Lesson 6 of 8

    25.6 Scopes, API keys and social login overview

    Enroll to open · 30 min read

  7. Lesson 7 of 8

    25.7 API security best practices and the OWASP API Top 10

    Enroll to open · 30 min read

  8. Lesson 8 of 8

    25.8 Rate limiting and abuse protection

    Enroll to open · 30 min read

← Back to course