Replies: 1 comment
-
You can pass the prompt field (Indicates the type of user interaction that is required) on your Microsoft Passport Strategy configuration |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've implemented Microsoft authentication using Node.js, Express.js, and Passport.js in my web application. The authentication process works seamlessly. However, I noticed that if I'm already logged in using my Microsoft account in the browser, subsequent attempts to log in using Microsoft on my website skip the login popup and directly authenticate using the saved browser credentials. While this might seem convenient, I want to ensure that the Microsoft login popup always appears to maintain security and user control.
Here's how my current authentication flow works:
Here's what I want to achieve:
I understand that this behavior is due to the browser handling the authentication process when it detects saved credentials for Microsoft. However, for security and user experience reasons, I want to override this behavior and always prompt the Microsoft login popup.
How can I achieve this in my Node.js, Express.js, and Passport.js application? Are there specific configurations or techniques I can implement to force the Microsoft login popup to appear every time a user attempts to log in, irrespective of their browser's saved credentials?
Beta Was this translation helpful? Give feedback.
All reactions