Backend to Frontend | 211207
211207
BFF
I have been looking into how best how to handle the Nextjs front end with the backend services. Which is something I didn’t really think about until I start writing application code cause the token to the frontend with no issue but using that token to with real concern, but how to best hand off that login ed in user to the backend came with some issues(more vagueness). I assumed there was just something I was missing or lacking in understanding so looked into the option on how to handle SSO with the frontend and backend be separated. cause there are a right many ways to handle it right with in the front end, while I don’t want to have to re-login to use functionally on the service side. SO gotta figure out how to let the backend handle this, and I think BFF pattern is solution for this and so i will provide to overthink this
1437
Here is some information i have found on this
- Auth0: BFF (.Net)
- Auth0: React + Golang Auth
- Curity:the-token-handler-pattern
- Dev.to: Understanding BFF
Short Term todo list
Figure out a project directory structure
- Id like to everything in one repo(this may change)
- one cause it makes it easy for devember to no have all the infra,ui,services, etc spread across multiply gits
- But no sure how to do this in way that will play nice with IDE,go mod, npm, …
- Id like to everything in one repo(this may change)
Configure Callback URL
Configure Logout URL
OIDC with Golang
I am not smart enough to get this work correctly with PKCE There are really only two ad