index.html 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta name="color-scheme" content="dark light" />
  7. <meta
  8. name="description"
  9. content="A confidential BFF runs the OAuth 2.1 flow - PKCE, PAR, DPoP - while this WASM page renders the identity, scopes, and token metadata that come back."
  10. />
  11. <meta name="theme-color" content="#141821" />
  12. <!-- The crate has both a lib (host-testable) and a bin target, so pin the
  13. Trunk artifact explicitly; `web-app` names the bin in Cargo.toml. -->
  14. <link data-trunk rel="rust" data-bin="web-app" />
  15. <!-- External CSP-safe autoloader: `inject_scripts = false` (Trunk.toml)
  16. leaves no inline `<script type="module">` for the BFF's strict
  17. `script-src 'self' 'wasm-unsafe-eval'` to block; this same-origin
  18. module imports the stable `web-app.js`/`web-app_bg.wasm` artifacts
  19. and calls `init()`. -->
  20. <link data-trunk rel="copy-file" href="bootstrap.js" />
  21. <script type="module" src="/bootstrap.js"></script>
  22. <link data-trunk rel="tailwind-css" href="style/input.css" />
  23. <title>OAuth 2.1 Client - sender-constrained sign-in</title>
  24. </head>
  25. <body>
  26. <noscript>
  27. <p class="p-6 font-sans text-sm">
  28. This demo is a WebAssembly application and needs JavaScript enabled.
  29. </p>
  30. </noscript>
  31. </body>
  32. </html>