This is a monorepo which showcases authenticating users via SSO and Directory Sync. The two services we are using are WorkOS as the service provider and Okta as the identity provider.
$ https://github.com/NathanTarbert/nathans-node-auth-app.git
Change directories into the app
$ cd nathans-node-auth-app
copy the example.env
to .env
in each folder and fill in the values.
We will install all dependencies in each app and run two servers with one command.
$ npm run start:both
What you will see in the terminal is
-
http://localhost:8000 as the primary server to authenticate the SSO login
-
http://localhost:8001 as the secondary server that will retrieve our users
Navigate to localhost:8000
to begin loggin in.
Reach out to me on Twitter if you have any questions.