working saml attributes

This commit is contained in:
Siwat Sirichai 2024-05-05 03:19:55 +07:00
parent 33865b9d02
commit 6a1c484356
2 changed files with 19 additions and 4 deletions

View file

@ -24,9 +24,10 @@ passport.use(
console.log("profile", profile);
let user = profile["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"];
return done(null, {
upn: profile["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"],
// e.g. if you added a Group claim
group: profile["http://schemas.xmlsoap.org/claims/Group"],
username: profile["username"],
first_name: profile["first_name"],
last_name: profile["last_name"],
org_unit: profile["org_unit"],
});
}
)