Sign In with WorkOS
WorkOS OAuth enterprise SSO SAML authentication provider single sign-onCreate WorkOS Account
Section titled “Create WorkOS Account”- Go to WorkOS’s website.
- Click on Sign In in the top menu and create a WorkOS account.
Get the Client ID
Section titled “Get the Client ID”- In the WorkOS dashboard, click on Configuration in the left menu.
- Copy the Client ID, which starts with
project_. - Paste the Client ID in the Client ID field in the WorkOS settings in the Nhost Dashboard.
Set correct Redirect URI
Section titled “Set correct Redirect URI”- In the WorkOS dashboard, click on Configuration in the left menu.
- Click on Edit Redirect URIs in the Redirect URIs section.
- Add the Redirect URL from the Nhost Dashboard to the list of Redirect URIs.
- Set the newly added redirect URI as the Default Redirect URI.
- Click on Close.
Get the Client Secret
Section titled “Get the Client Secret”- In the WorkOS dashboard, click on API Keys in the left menu.
- Click on the eye icon next to the Client Secret to reveal it.
- Copy the Client Secret, which stars with
sk_. - Paste the Client Secret in the Client Secret field in the WorkOS settings in the Nhost Dashboard.
Get Organization ID
Section titled “Get Organization ID”- In the WorkOS dashboard, click on Organizations in the left menu.
- Click on Create an Organization.
- Fill in the organization details and click on Create Organization.
- Click on the newly created organization.
- Copy the Organization ID, which stars with
org_. - Paste the Organization ID in the Organization ID field in the WorkOS settings in the Nhost Dashboard.
- Click Save in the Nhost Dashboard to save all WorkOS settings.
The WorkOS configuration is now completed with Nhost.
See the WorkOS documentation to learn more about how to configure WorkOS.
Sign In Users
Section titled “Sign In Users”Once you’ve configured WorkOS as an OAuth provider in Nhost, you can sign in users using the WorkOS provider. See the OAuth Provider Sign-In Guide for detailed implementation instructions including the complete OAuth flow, error handling, and session management.