diff options
author | Norihito Nakae | 2017-12-04 19:57:06 +0900 |
---|---|---|
committer | Norihito Nakae | 2017-12-04 20:13:15 +0900 |
commit | 2db2ff484fb0911ea699c7fc59b8b1ad868ca992 (patch) | |
tree | 338d72c4d9e58e51e76b662db3edf650200ad117 /lib | |
parent | 410268da741d61c9f010514a6e7dd59542a051d8 (diff) |
added guide for SAML settings
Diffstat (limited to '')
-rw-r--r-- | lib/config/default.js | 1 | ||||
-rw-r--r-- | lib/config/environment.js | 1 | ||||
-rw-r--r-- | lib/web/auth/saml/index.js | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index 96bfe79b..d04485ce 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -109,7 +109,6 @@ module.exports = { attribute: { id: undefined, username: undefined, - displayName: undefined, email: undefined } }, diff --git a/lib/config/environment.js b/lib/config/environment.js index 3b2e34a0..b7b0e3f8 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -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 } }, diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js index 063fa1d6..386293ae 100644 --- a/lib/web/auth/saml/index.js +++ b/lib/web/auth/saml/index.js @@ -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') { |