~/talk

Securing PHP APIs with Decentralised Identity Tokens

Talkat Dutch PHP Conference 2021 · 2021-06-17..06-18· [security, php]
slides:none on file

Demonstrates securing PHP REST APIs by issuing DID tokens from Magic (client-side Magic SDK) and validating them server-side with magic-admin-php validate(). Builds a Composer + MySQL API (GET/POST/PUT/DELETE), extracts email from the DID token and gates create/update/delete routes; default tokens last 15 minutes and can be extended. DID tokens are Base64 JSON signed with Ethereum personal_sign and backed by delegated key management using HSMs. Notes 59% password reuse and the Equifax $4.2M breach as motivation.

AI-written summary · about

  1. 0:00Start
  2. 5:21What is DID Token?
  3. 8:08Authentication & Authorization
  4. 10:20Build PHP API
  5. 10:58composer init
~/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.