~/talk

Securing SPAs and Blazor Applications using the BFF (Backend for Frontend) Pattern

Talkat NDC Security 2023 · 2023-01-16..01-19· [security, web-platform]
slides:none on file

Claim: move OAuth tokens out of the browser into a server-side BFF to avoid XSS and broken iframe tricks; demo shows an ASP.NET Core BFF issuing same-site cookies, storing refresh tokens server-side, exposing simple /login /logout /user endpoints, and proxying API calls with YARP reverse proxy. Shows iframe silent-renew and check-session fail when browsers block third‑party cookies. Adds a static anti‑forgery header so cross‑origin calls trigger CORS preflight. Built token management library (Apache‑2) and the demos work.

AI-written summary · about

  1. 0:00Introduction
  2. 11:17Transmission of tokens over URLs
  3. 13:13Token storage in browsers
  4. 17:05How to get new access tokens
  5. 20:29JavaScript library
  6. 21:43Browser standardization
  7. 25:31Brave
  8. 26:57Browser Changes
  9. 28:24Browser Security
  10. 29:10Backend for Frontend
  11. 30:50Classic Server Side Model
  12. 31:34How does it work
  13. 32:43Full disclosure
  14. 34:00Do we expose login and log out
  15. 34:33OpenID Connect Authentication Handler
  16. 35:21User Endpoint
  17. 36:15Cookie Handler
  18. 41:05Session Change Notifications
  19. 43:02API
  20. 49:31Reverse Proxy
  21. 53:37Token Management Mode
  22. 54:37BFF Styles
~/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.