admin管理员组文章数量:1317915
I have implemented Duende BFF auth in already. But I wonder how I can achieve the same using node.js. I have a login site which uses Duende to recieve a cookie for all same-site domains, but my problem is I want to change my other BFF (client -> BFF -> micro services) to be i node.js. I am currently trying to implement the same using openid-client, but I cannot wrap my head around how the flow really is behind the scenes.
These are my services:
id.myapp -> handle all the userSession stuff with verifying the user etc
login.myapp -> handle login, use id.myapp to verify
bff.myapp -> use bffAuth with oidc flow from duende
Client flow:
Client (with cookie) -> read request to BFF which aggregates result from multiple services -> 2x services
I am currently also wondering if this may be secure enough:
Client (with cookie) -> BFF aggregator -> fetch user token from login.myapp -> 2x micro services.
I have implemented Duende BFF auth in already. But I wonder how I can achieve the same using node.js. I have a login site which uses Duende to recieve a cookie for all same-site domains, but my problem is I want to change my other BFF (client -> BFF -> micro services) to be i node.js. I am currently trying to implement the same using openid-client, but I cannot wrap my head around how the flow really is behind the scenes.
These are my services:
id.myapp -> handle all the userSession stuff with verifying the user etc
login.myapp -> handle login, use id.myapp to verify
bff.myapp -> use bffAuth with oidc flow from duende
Client flow:
Client (with cookie) -> read request to BFF which aggregates result from multiple services -> 2x services
I am currently also wondering if this may be secure enough:
Client (with cookie) -> BFF aggregator -> fetch user token from login.myapp -> 2x micro services.
1 Answer
Reset to default 0In general, moving as much of possible of the authentication logic to the backend (BFF) is good! Keep the frontend as simple as possible, only using cookie authentication is best practice.
This is a good video on the topic alert‘OAuth 2 0’; // The impact of XSS on OAuth 2 0 in SPAs
本文标签: openid connectDuende BFF auth with nodejsStack Overflow
版权声明:本文标题:openid connect - Duende BFF auth with node.js - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742025202a2415411.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论