feat: authentication (OIDC) integration, package.json bump #6
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/auth-integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
package.jsonversions bumpnuxt-oidcmodule 11d05221fcEndpoints with authentication:
openapi-tsgeneratedsdk.gen.ts:It has
securityattributes inoptions,plugins/openapi.tslooks for that field:const proxied = Array.isArray(options.security) && options.security.length > 0;And if it has such attribute, we forward to
/api/auth-proxyendpoint which will attachaccessTokenasAuthorization: Bearer <access_token>.So
OIDCtoken is stored on the backend side of Nuxt.One downside: BFF may be bottleneck in the future if there are too much authenticated resources? I am not sure, i hope Nuxt is scalable, i saw some "workers" concept, so i guess it will scale 😄