本文介绍了单点登录多个 nodejs 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有 3 个 nodejs Web 应用程序在具有多个子域的同一个 vps 上以相同的域名运行,并为每个子域实施护照身份验证.我们希望单个用户能够使用单个帐户访问所有应用程序,为此我们添加了 accounts.example.com 作为第四个应用程序,仅用于帐户管理.要求是 - 一旦用户在 accounts.example.com 中通过身份验证,如何使用户能够通过该会话访问其余三个 Web 应用程序.

We have 3 nodejs web application running on same domain name on same vps with multiple subdomains and implementing passport authentication for each. We wanted single user be able to access all application with single account and for that we have added accounts.example.com as fourth application solely for purpose of account management. The requirement is - once user is authenticated in accounts.example.com, how to enable user to access rest of the three web application with that session.

推荐答案

Try Hands on CanSecurity... 它在 node.js 单点登录排行榜上名列前茅...希望这证明是富有成效的 https://github.com/deitch/cansecurity

Try Hands on CanSecurity... It tops the chart for node.js Single sign on.. Hope this proves fruitful https://github.com/deitch/cansecurity

这篇关于单点登录多个 nodejs 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 20:19