Setup
Follow these steps if you have not created a Microsoft OAuth client yet.- Create a Microsoft Azure account if you have not already done so.
- Navigate to Azure Active Directory to create a Microsoft application.
- Click New registration.

- Enter a name for your OAuth client.
- Select “Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)”.

- Under the Redirect URI section, select Web and then copy-paste the Stytch redirect URI from the OAuth page into the URI field.

- Click Register to save the configuration.
Follow these steps if you already have an existing Microsoft OAuth client.
- Navigate to Azure Active Directory and select your Microsoft application.
- Ensure that the Supported account types section is set to “All Microsoft account users”. If it’s not, navigate to the Manifest tab, set the “signInAudience” value to “AzureADandPersonalMicrosoftAccount”, and save.

- In your OAuth client configuration, select the link next to the Redirect URIs section. Then select Add a platform and finally select Web.

- Copy-paste the Stytch redirect URI from the Dashboard into the URI field.

- Click Configure to save the URI.