cell_tower Broadcast Station
visibility 14.4K views schedule 3 years ago
CULCHR.TV Vintage Exclusive
Vintage Sneakers Streetwear +37

Add Single Sign-On (SSO) to a Node app in 8 MINUTES

Subscribe: https://lwj.dev/newsletter — Many devs (like me!) are intimidated by enterprise features like single sign-on (SSO), but the tools are WAY better now. You can add it to SaaS apps fast! This tutorial covers adding single sign-on to a Node.js app built with Fastify (very similar to Express — all the same concepts and most of the same code will apply). WorkOS powers the SSO flow, and Okta is used as the Identity Provider (IdP) that allows customers to manage who on their team has access to apps in a single place. Features like SSO might seem daunting, but they're a necessity if you want to land the enterprise contracts that are worth upwards of $100,000 USD. WorkOS makes it really fast to add single sign-on and a whole host of other features that get your SaaS app ready for enterprise contracts. Huge thanks to WorkOS for making this video possible. Get your account at https://lwj.dev/workos Resources & Links: - source code: https://github.com/learnwithjason/workos-six-figure-saas-contracts - WorkOS docs on setting up SSO: https://workos.com/docs/sso - Okta developer edition: https://developer.okta.com/signup/ - Fastify (Express alternative for Node.js): https://fastify.dev/ Chapters: 0:00 Why big customers ask for SSO support 0:47 Add a redirect URI to WorkOS 1:05 Create an organization in WorkOS 1:26 Configure single sign-on (SSO) in WorkOS 1:38 Add an app integration in Okta 2:36 Add the Okta metadata URL to WorkOS 2:49 How to give employees access to SSO-enabled apps in Okta 3:25 Add SSO support to a Node.js app 3:47 Set environment variables 4:33 Add a login route and SSO flow handling 5:14 Handle redirect URI calls 5:48 Test the login 6:03 Enable sessions for storing user data 6:30 Store user data in the session and pass to the home page 7:05 Require a valid user session to view the dashboard 7:22 Handle logout 7:44 Recap and next steps

0:00 / 0:00
visibility 14,414 views thumb_up 151 comment 9 schedule 8:18 2023 3 years ago
Subscribe: https://lwj.dev/newsletter — Many devs (like me!) are intimidated by enterprise features like single sign-on (SSO), but the tools are WAY better now. You can add it to SaaS apps fast! This tutorial covers adding single sign-on to a Node.js app built with Fastify (very similar to Express — all the same concepts and most of the same code will apply). WorkOS powers the SSO flow, and Okta is used as the Identity Provider (IdP) that allows customers to manage who on their team has access to apps in a single place. Features like SSO might seem daunting, but they're a necessity if you want to land the enterprise contracts that are worth upwards of $100,000 USD. WorkOS makes it really fast to add single sign-on and a whole host of other features that get your SaaS app ready for enterprise contracts. Huge thanks to WorkOS for making this video possible. Get your account at https://lwj.dev/workos Resources & Links: - source code: https://github.com/learnwithjason/workos-six-figure-saas-contracts - WorkOS docs on setting up SSO: https://workos.com/docs/sso - Okta developer edition: https://developer.okta.com/signup/ - Fastify (Express alternative for Node.js): https://fastify.dev/ Chapters: 0:00 Why big customers ask for SSO support 0:47 Add a redirect URI to WorkOS 1:05 Create an organization in WorkOS 1:26 Configure single sign-on (SSO) in WorkOS 1:38 Add an app integration in Okta 2:36 Add the Okta metadata URL to WorkOS 2:49 How to give employees access to SSO-enabled apps in Okta 3:25 Add SSO support to a Node.js app 3:47 Set environment variables 4:33 Add a login route and SSO flow handling 5:14 Handle redirect URI calls 5:48 Test the login 6:03 Enable sessions for storing user data 6:30 Store user data in the session and pass to the home page 7:05 Require a valid user session to view the dashboard 7:22 Handle logout 7:44 Recap and next steps