I am working on a NodeJS application that uses Passport for authentication and is deployed on IBM Cloud AppID SAML. While I am able to successfully authenticate a user using the AppID authentication mechanism, I am unable to retrieve the idToken, refreshToken, and accessToken that are supposed to be returned in the callback function.
Does anyone have experience with using AppID SAML with Passport and know what could be causing this issue, or if you have a link for documentation exactly about that ?
Any help or suggestions would be greatly appreciated. Thank you.
i tried that for login to application :
app.get('/api/iam/logonsso',
passport.authenticate(WebAppStrategy.STRATEGY_NAME, {
successRedirect: '/',
forceLogin: true
})
)
And this function for callback :
app.get('/api/iam/callback', passport.authenticate(WebAppStrategy.STRATEGY_NAME));