working saml attributes
This commit is contained in:
parent
33865b9d02
commit
6a1c484356
2 changed files with 19 additions and 4 deletions
|
|
@ -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"],
|
||||
});
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue