I was looking into improving my sing-up and login workflows and I looked into Okta
.
At the moment we are using passport with our custom database and customs strategies and sessions remote storage. It seems like Okta
can be used on its own. I did find some custom libraries online to use it with Passport.js
. I don't see why you would tough.
Anyone has any experience with Okta
and any opinion on why you would use it with passport
?
I'm not familiar with passport.js, but I tend to agree with you, with Okta you might not need it. Okta can handle most of the authentication, depending on how your app is developed you might need passport.
For example, if you are developing a SPA app or something that runs in serverless environment, you could use a Bearer token from Oauth. If your app is older, you might need something to persist the session. So, maybe that is what passport does for ya.
Okta is about to release self service registration, which after email confirmation, or registration will create a Users Session.
https://support.okta.com/help/Documentation/Knowledge_Article/Okta-Self-Service-Registration-685599529
Don't know if that helps.
Thanks
James
MLOPS Training
Whether to use Okta with Passport.js or not depends on the requirements and constraints of your application.
If you need a flexible and scalable authentication solution that can handle user management, Single Sign-On (SSO), and secure access to APIs, using Okta with Passport.js can be a good choice. Okta provides a comprehensive identity management platform, and Passport.js is a popular middleware for handling authentication in Node.js applications. Integrating the two allows you to leverage Okta's features for user management and SSO, while Passport.js handles the underlying details of authentication such as serializing and deserializing user information.
On the other hand, if you have specific requirements for authentication that are not met by Okta or if you want to have more control over the authentication process, you may choose to implement authentication from scratch using Passport.js.
In either case, it is important to carefully consider the security implications of your authentication strategy and implement it correctly to protect sensitive user data.
https://support.okta.com/help/Documentation/Knowledge_Article/Okta-Self-Service-Registration-685599529
Thanks
navyasri
Selenium Testing Course