-
Hi Everyone, Was anyone able to replace angular in the given example and integrate BFF with Vue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Another related question / issue to NUXT usage. |
Beta Was this translation helpful? Give feedback.
-
From https://github.com/authts/oidc-client-ts
The BFF pattern intends precisely not to use such libs which make the SPA a public OAuth2 client. With such libs, tokens are delivered to the application running in the browser and this application then uses this tokens to authorize direct calls to resource server. This is unsafe and Spring Security team now recommends to use only confidential clients and the BFF pattern where requests from the SPA (your Vue app, the Angular app in the tutorial, React apps, Flutter web apps, etc) are authorized with session cookie and CSRF token, not with access tokens in In the BFF pattern the OAuth2 client is a component running server-side, not the single page app running in the browser on the user device. In the tutorials the BFF is a
EditThe BFF tutorial moved to Baeldung now includes a frontend written with Vue (in addition to Angular and React). |
Beta Was this translation helpful? Give feedback.
-
The BFF tutorial migrated on Baeldung now contains sample implementation for Vue (in addition to Angular and React). So I'll mark this thread as answered. |
Beta Was this translation helpful? Give feedback.
From https://github.com/authts/oidc-client-ts
The BFF pattern intends precisely not to use such libs which make the SPA a public OAuth2 client. With such libs, tokens are delivered to the application running in the browser and this application then uses this tokens to authorize direct calls to resource server.
This is unsafe and Spring Security team now recommends to use only confidential clients and the BFF pattern wh…