~/talk

Authenticating with ALB and External ID Providers While Keeping Access Control Simple in Laravel Without Gate/Policy — Ryosuke Sasaki

TalkinJapaneseat PHP Conference Japan 2024 · on Sunday, 2024-12-22· [php, laravel]
links:none on file
slides:none on file

Describes using AWS ALB with an external OIDC JWT identity provider so the app receives verified user claims in HTTP headers, then implementing role-based access control in Laravel with Casbin instead of Laravel Gate/Policy. Explains middleware that verifies JWT signatures and issuer, extracts roles from the token, and enforces DB-backed Casbin rules; notes ALB cost and IDP setup complexity, recommends Terraform for ALB and s2-proxy for local development, and warns about tightening JWT and network restrictions.

AI-written summary · about

  1. 0:00Introduction
  2. 2:52ALB and external ID providers
  3. 7:10ALB and IDP integration setup
  4. 11:33Casbin in Laravel
  5. 15:30Casbin policy definition
  6. 18:00Customizing Casbin rules
  7. 20:33Local dev without ALB
  8. 21:39Summary
  9. 23:34Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.