Learn how Stytch's OAuth-based connected apps authentication flow works with this interactive guide.
A centralized login flow uses OAuth to allow users to authenticate once and seamlessly access multiple applications within your ecosystem. This flow demonstrates how a user can log in to a connected app (acmecalendar.com) through a centralized identity provider (accounts.acme.com) using Stytch's Connected Apps.
User clicks login on acmecalendar.com
If a session does not exist, the user will be prompted to login.
User logs in if they don't already have a session
The Stytch <B2BIdentityProvider /> component initalizes the OAuth flow and redirects the user back to Acme Calendar with an auth code.
Auth code exchanged for Access Token
This is an interactive demonstration. Click the button above to start the OAuth flow.