githubEdit

upv9 -> v10-rc.X

circle-exclamation
vite.config.ts
  oidcSpa({
    browserRuntimeFreeze: { enabled: true },
    tokenSubstitution: {
        enabled: true,
-       trustedThirdPartyResourceServers: ["s3.amazonaws.com"],
+       trustedExternalResourceServers: [
+           "*.{{location.hostname.split('.').slice(-2).join('.')}}",
+           "s3.amazonaws.com"
+       ]
    },
+   DPoP: { mode: "auto" /* or "enforced" */}
});
 createOidc({ // or bootstrapOidc({
     // ...
-    dpop: "auto"
 })     

Takeways:

  • trustedThirdPartyResourceServers renamed to trustedExternalResourceServers

  • If you want trust same site origins (*.my-domain.com) you should state it explicitely with "*.{{location.hostname.split('.').slice(-2).join('.')}}" (Previously it was enabled by default).

  • DPoP is now globally enabled, not on a per OIDC client instance basis.

Last updated

Was this helpful?