Wsfedsaml2 - 解密密钥
Wsfedsaml2 - Decryption key
我正在尝试使用此 api: https://github.com/auth0/passport-wsfed-saml2 在我的应用程序中实施 SSO。
我已经在虚拟框中配置了 ADFS 服务。
当我尝试登录时,它显示以下消息:断言已加密。请设置options.decryptionKey为您的解密私钥。
我从哪里得到这个解密密钥?我有点迷路了。
提前致谢。
根据我的理解,您必须将您的私钥副本保存在您的代码库中或从某个环境变量中读取它。
在你的代码中
passport.use('wsfed-saml2', new wsfedsaml2({
protocol: "samlp",
// This is the private key (use case where ADFS
// is configured for RP token encryption)
decryptionKey: fs.readFileSync("your+key+path+privateKey")
}, function (profile, done) {
// ...
}));
希望对您有所帮助
我正在尝试使用此 api: https://github.com/auth0/passport-wsfed-saml2 在我的应用程序中实施 SSO。 我已经在虚拟框中配置了 ADFS 服务。
当我尝试登录时,它显示以下消息:断言已加密。请设置options.decryptionKey为您的解密私钥。
我从哪里得到这个解密密钥?我有点迷路了。
提前致谢。
根据我的理解,您必须将您的私钥副本保存在您的代码库中或从某个环境变量中读取它。 在你的代码中
passport.use('wsfed-saml2', new wsfedsaml2({
protocol: "samlp",
// This is the private key (use case where ADFS
// is configured for RP token encryption)
decryptionKey: fs.readFileSync("your+key+path+privateKey")
}, function (profile, done) {
// ...
}));
希望对您有所帮助