护照-SAML请求中缺少"目的地"属性



我正在向我的 IDP 发送 saml 请求,并在此过程中收到以下错误消息:

请求 GET/ssoauth 的未处理错误:错误:缺少属性的属性值 元素的目标 samlp:AuthnRequest

其中/ssoauth 是客户端在服务器上用于发起请求的路径。

这是我的护照.js文件:

VAR护照=要求("护照"(; var config = require('./samlConfig'(; var SamlStrategy = require('passport-saml'(.策略; var samlOptions = {  entryPoint: config.entryPoint,  发行者:config.callbackUrl,  callbackUrl: config.callbackUrl,  证书:配置.cert,  标识符格式:空 }; passport.serializeUser(function(user, done( {  完成(空,user.id(; }); passport.deserializeUser(function(id, done( {  完成(错误,用户(; }); passport.use(new SamlStrategy(  萨姆选项,  函数(配置文件,完成( { findByEmail(profile.email, function(err, user( {  如果(错误({ 返回完成(错误(; } 返回完成(空,用户(; }); } )); 模块出口 = 护照;

Samlconfig.js:

var entryPoint = 'https://sso.jumpcloud.com/saml2/myapp'; VaR 发行人 = '护照-SAML'; var callbackUrl = 'https://localhost:5000/login/callback'; var identifierFormat = 'identifierFormat: null'; var cert = '...';

就我而言,我不小心在entryPoint属性名称中输入了拼写错误。

此错误仅表示SamlConfig.entryPoint没有值。

最新更新