added guide for SAML settings
This commit is contained in:
@@ -109,7 +109,6 @@ module.exports = {
|
||||
attribute: {
|
||||
id: undefined,
|
||||
username: undefined,
|
||||
displayName: undefined,
|
||||
email: undefined
|
||||
}
|
||||
},
|
||||
|
||||
@@ -84,7 +84,6 @@ module.exports = {
|
||||
attribute: {
|
||||
id: process.env.HMD_SAML_ATTRIBUTE_ID,
|
||||
username: process.env.HMD_SAML_ATTRIBUTE_USERNAME,
|
||||
displayName: process.env.HMD_SAML_ATTRIBUTE_DISPLAYNAME,
|
||||
email: process.env.HMD_SAML_ATTRIBUTE_EMAIL
|
||||
}
|
||||
},
|
||||
|
||||
@@ -39,7 +39,6 @@ passport.use(new SamlStrategy({
|
||||
provider: 'saml',
|
||||
id: 'SAML-' + uuid,
|
||||
username: user[config.saml.attribute.username] || user.nameID,
|
||||
displayName: user[config.saml.attribute.displayName] || user.nameID,
|
||||
emails: user[config.saml.attribute.email] ? [user[config.saml.attribute.email]] : []
|
||||
}
|
||||
if (profile.emails.length === 0 && config.saml.identifierFormat === 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress') {
|
||||
|
||||
Reference in New Issue
Block a user