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

SymfonyCasts

Symfony RESTful API: Authentication with JWT (Course 4)

via SymfonyCasts

Overview

After 3 tutorials, we've got a nice API, But we've been completely ignoring authentication. What about API tokens? Or properly handling errors? Thanks to some modern tools, this will be such a treat:

  • Understanding JSON web tokens (JWT)
  • Creating, signing & returning JWT's
  • Using Guard for a custom JWT authentication system
  • Sending tokens on the Authorization header
  • Proper API errors for invalid credentials and missing credentials
  • Choosing to split into 2 firewalls

Syllabus

  • Start Securing the App!
  • JSON Web Tokens (are awesome)
  • LexikJWTAuthenticationBundle
  • The "Fetch a Token" Endpoint Test
  • Create a Shiny JSON Web Token
  • Authenticate a Request with JWT
  • JWT Guard Authenticator (Part 1)
  • Registering the Authenticator (Part 2)
  • Lock down: Require Authentication Everywhere
  • The "Entry Point" & Multiple Firewalls
  • JSON Errors in your API
  • ResponseFactory: Centralize Error Responses
  • Graceful Errors for an Invalid JWT
  • JWT: Other Things to Think about

Taught by

Ryan Weaver and Leanna Pelham

Reviews

Start your review of Symfony RESTful API: Authentication with JWT (Course 4)

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.