Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Secure Authentication & Authorization in FastAPI

via CodeSignal

Overview

Master the implementation of secure authentication and authorization mechanisms in FastAPI applications using Python. This course covers best practices for user authentication, session management, and access control to protect against common security vulnerabilities.

Syllabus

  • Unit 1: Account Lockout and Enumeration Prevention
    • Simulate Username Enumeration Attack
    • Prevent Username Enumeration in Login
    • Simulate a Brute Force Attack
    • Implement Account Lockout Mechanism
  • Unit 2: Token-Based Authentication with Cookies and JWT Expiration
    • Token Expiration Implementation
    • Secure Token Storage with Cookies
    • Update Frontend for Cookie Authentication
  • Unit 3: Implementing Token Refresh Mechanism
    • Implementing Token Generation with Refresh Support
    • Implement Token Refresh Endpoint
    • Implement Token Refresh on Frontend
    • Implementing Token Revocation Endpoint
  • Unit 4: Session Management Best Practices
    • Secure Your Session Cookies
    • Session Timeout and Absolute Timeout
    • Session Rotation on Privilege Change

Reviews

Start your review of Secure Authentication & Authorization in FastAPI

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.