~/talk

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

Talkat NDC Porto 2022 · 2022-04-25..04-29· [security, web-platform]
slides:none on file

Charts the shift from implicit tokens to a server-side BFF and shows a working ASP.NET Core prototype that stores only an httpOnly cookie front-to-back, manages refresh tokens server-side, and reverse-proxies API calls with YARP. Explains why browser changes (Safari cookie blocking, Chrome “cookie pocalypse” planned 2023) break iframe renew and session checks, why XSS and CSRF force moving token logic off the client, and why same-site cookies plus a static custom header and ASP.NET Core session/token plumbing deliver a practical secure SPA/Blazor pattern.

AI-written summary · about

  1. 0:00Start
  2. 3:39Setting the scene
  3. 4:47Modern Business Applications
  4. 8:17Threat: cross-site request forgery (CSRF)
  5. 11:27CSRF mitigation with anti-forgery tokens
  6. 14:34History 2 - The Token Era
  7. 15:41OAuth 2 Approach Implicit Flow
  8. 16:10Challenge: Token Transmission
  9. 17:06Authorization Code Flow
  10. 17:53Challenge: Token Storage
  11. 22:09Challenge: Token and Session Management
  12. 25:08JavaScript Client Libraries
  13. 30:11Browser Changes (3)
  14. 33:50New IETF Recommendations
  15. 37:50Full BFF Overview
  16. 38:30Building a BFF with ASP.NET Core
  17. 41:11Building Blocks (1)
  18. 41:42User authentication and token requests
  19. 55:06Summary
~/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.