Skip to content

Integrate spring-addons BFF with Nuxt 3 (Vue) #164

Answered by ch4mpy
devozs asked this question in Q&A
Discussion options

You must be logged in to vote

I encounter UserManager of "oidc-client-ts" (pinia as store) and i wonder if it can be used together with spring-addons BFF implementation.

From https://github.com/authts/oidc-client-ts

Library to provide OpenID Connect (OIDC) and OAuth2 protocol support for client-side, browser-based JavaScript client applications

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…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@devozs
Comment options

Answer selected by ch4mpy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants