Skip to content

Commit

Permalink
feat: set the default nameid format to be persistent (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba authored Sep 9, 2024
1 parent bc64c88 commit 41c145c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/saml/public/node/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ app.post('/login', (req, res) => {
failureFlash: true,
successRedirect: '/',
failureRedirect: '/login',
failureMessage: true,
})(req, res);
});

Expand All @@ -90,7 +91,7 @@ app.post('/login/callback', (req: any, res, next) => {
failureRedirect: '/login',
successRedirect: '/',
failureFlash: true,
})(req, res);
})(req, res, next);
});

app.get('/logout', (req: any, res, next) => {
Expand Down
1 change: 1 addition & 0 deletions examples/saml/public/node/src/strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class SamlStrategy {
logoutUrl: samlStrategyConfig.logoutUrl,
logoutCallbackUrl: `${process.env.APP_URI}/logout/callback`,
signatureAlgorithm: 'sha256',
identifierFormat: 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
},
(profile: any, done: any) => {
console.log('passport.use() profile: %s \n', JSON.stringify(profile));
Expand Down

0 comments on commit 41c145c

Please sign in to comment.