We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have a few questions regarding the OAuth flow with Ping.
Please get back to me with the details as soon as possible.
Following is my server.js code. I am using NextJS with Ping OAuth.
server.get( '/', passport.authenticate('oauth2', { scope: ['openid', 'profile', 'email'], idp: 'OAuth', }) ); server.get( '/dashboard', passport.authenticate('oauth2', { failureRedirect: '/login' }), function (req, res) { // Successful authentication, redirect home. res.redirect( url.format({ pathname: '/home', query: { userId: req.user.sub, }, }) ); } ); server.get('/home', function(req, res) { const userId = req.query.userId; app.render(req, res, '/home', { userId }); }); server.get('/logout', (req, res) => { req.logout(); res.redirect('/'); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I have a few questions regarding the OAuth flow with Ping.
Please get back to me with the details as soon as possible.
Following is my server.js code. I am using NextJS with Ping OAuth.
The text was updated successfully, but these errors were encountered: