的NodeJS - 护照SAML实现与一登录

问题描述 投票:9回答:1

我想passport-sample例如下面通过一次登录SSO运行。但我不能让它成功。我在SAML入口点(Onelogin HTTP-redirect)给出config.js网址。它被重定向到一个登录认证页面,重新导向到应用程序页面,但应用程序不加载。

https://github.com/gbraad/passport-saml-example

请指教一下我在这里失踪。

module.exports = {
  development: {
    app: {
      name: 'Passport SAML strategy example',
      port: process.env.PORT || 3000
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/login/callback',
        entryPoint: process.env.SAML_ENTRY_POINT || 'https://domain.onelogin.com/trust/saml2/http-redirect/slo/200908',
        issuer: 'passport-saml',
        cert: process.env.SAML_CERT || null
      }
    }
  }
};
javascript node.js passport.js saml onelogin
1个回答
4
投票

该SAML entryPoint看起来不正确的护照SAML配置。

这是目前配置为单注销服务的URL;而

在服务URL的单点登录应改为类似:

'https://domain.onelogin.com/trust/saml2/http-post/sso/200908'

在入口点上面还确定是因为在AuthNRequest发送的passport-saml module at version 0.5.0使用http-post协议用于与所述身份提供者的认证请求的结合和未http-redirect协议绑定正确的协议绑定使用。

© www.soinside.com 2019 - 2024. All rights reserved.