~/talk

Auth factories in Laravel

Talkat Laracon AU 2025 · 2025-11-13..11-14· [laravel, security]
github:sifrious
slides:none on file

Explains how Laravel applies factory and abstract factory patterns via Socialite, the service container and session drivers, using a Slack OAuth implementation to show concrete code-level interactions. Covers how the Socialite manager and session manager are constructed by the service container, how provider drivers are resolved and callbacks handled, and when to use abstract factories and configuration-driven product families.

AI-written summary · about

  1. 0:00Start
  2. 0:39Mary introduces herself
  3. 1:42A Laravel powered jobs board for her local tech meetup
  4. 2:20Explaining OAuth, access management and how Socialite wraps providers
  5. 2:45Refusing to believe OAuth could be that easy in Laravel until it worked first try
  6. 3:05Determination to understand what was happening beneath the surface
  7. 3:50Decoupling is essential for factory patterns
  8. 4:10Introducing the factory pattern
  9. 5:00How the Socialite manager functions as a factory
  10. 5:40HTTP statelessness and session storage
  11. 6:30Socialite and session managers are factories created by the service container
  12. 7:10Walkthrough of session manager construction
  13. 8:12How Socialite and session products interact at runtime
  14. 9:03Why concrete Laravel code provides more meaningful insight for self taught developers
  15. 9:40Why Laravel source code is excellent for learning
  16. 10:03Reviewing when to use abstract factories and how Laravel meets those conditions
  17. 11:05Discussing configuration driven families of products
  18. 12:00Tying together factory creation of Socialite manager and session manager
  19. 12:40How Socialite provider drivers are resolved, callbacks are handled and customising behaviour
  20. 13:10Walking through building a provider
  21. 13:45Reading code is challenging at first but improves with practice
  22. 14:28Final takeaway
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.