~/talk

Using the BFF pattern to secure SPA and Blazor Applications

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [security]
slides:none on file

Argues that SPAs and Blazor must stop storing OAuth tokens in the browser and adopt a full BFF where ASP.NET Core + the OpenID Connect handler keep tokens server‑side, use sameSite cookies and session middleware, and proxy API calls (demo uses YARP reverse proxy and a token‑management library). Shows iframe silent‑renew already broken in Safari/Brave and warns against refresh tokens in the browser; the implemented BFF works in demos and preserves SSO and logout via back‑channel notifications.

AI-written summary · about

  1. 0:00Start
  2. 2:19Agenda
  3. 3:03Back-End for Front-End Pattern
  4. 6:31Cross-Site Request Forgery
  5. 9:30Anti-Forgery Protection
  6. 12:20Why Would You Ever Write an Application with Javascript
  7. 12:56Implicit Flow
  8. 20:45Javascript Client Library
  9. 21:17The Browsers Are Changing
  10. 22:21Block Cookies in Iframes
  11. 27:07What an Origin Is and What a Site
  12. 27:48Sub Domain Takeover Attack
  13. 29:23New Ietf Recommendations
  14. 30:43Types of Javascript Applications
  15. 32:32Flavors of Bff
  16. 33:57The Full Bff Approach
  17. 37:21Authentication
  18. 38:10Javascript Sample
  19. 42:18Session Information
  20. 43:27Dynamically Suppress Sliding Cookies
  21. 43:53Token Management
  22. 47:24Session Change Notifications
  23. 51:41Course Check
  24. 51:53Preflight Request
  25. 53:27Remote Apis
  26. 55:17Reverse Proxy
~/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.