Skip to content

zac-workos/react-authkit-walkthrough

 
 

Repository files navigation

WorkOS AuthKit Example Application Setup Guide

✅ Prerequisite Setup

🛠️ Dashboard Setup

  • Dashboard Config

    • Add this redirect URI to your WorkOS dashboard:
      http://localhost:5173

    Screenshot 2025-02-25 at 3 17 41 PM

    • Go to the Authentication page → Click Configure CORS

    • Add http://localhost:5173 to allowed origins and click "Save".

      Screenshot 2025-02-25 at 3 18 52 PM

    • Navigate to API Keys and copy your Client ID

      Screenshot 2025-02-25 at 3 22 07 PM

    • Rename .env.local.example to .env.local

    • Paste your Client ID into the .env.local file

      Screenshot 2025-02-25 at 3 22 59 PM

    • Go to the Organizations tab and create an organization

      image (2)

    • Add a domain (use your Okta dev sandbox domain)

    • Make sure to create a user under this domain in Okta (admin role is fine)

  • Configure Organization Domain Policy

    image (4)

    • Adjust authentication policies for your org/domain as needed
    • Enable SSO once the connection is available
    • Enable/disable additional authentication methods via the Authentication tab
  • Set Up Okta (or other IDP) SSO

    • Go to your organization in WorkOS

    • Click Invite Admin

      • Select features (just SSO for this lab)
    • Click NextCopy Setup Link

      This is what customers would use to configure SSO/SCIM with your app Screenshot 2025-02-25 at 3 24 24 PM

    • Paste the link in your browser to begin the SSO setup

      Screenshot 2025-02-25 at 3 24 49 PM

  • Brand Authkit

    • Navigate to the Branding tab in the WorkOS Dashboard
    • Customize the login widget (logos, colors, etc.)
    • Optionally enable the split panel and add your own HTML/CSS

      Screenshot 2025-02-25 at 3 25 43 PM

  • Test the Login Flow

    • Test SSO by using an email address from your Okta domain
    • Test other login methods (email/password, social logins, etc.)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 90.7%
  • JavaScript 4.9%
  • HTML 4.4%