---
title: Set up SSO locally in Spire
slug: configured-commerce/docs/set-up-sso-locally-in-spire
docTags: 
createdAt: 2026-08-13T10:46:32.000Z
---

To set up SSO locally in Spire:

1. Run Spire on localhost port 80 and run Configured Commerce on localhost on a different port (for example, 8080)
2. Set the apiUrl in the Spire `settings.json` to `http://localhost:8080`.
3. The hostname that Spire runs on and the hostname that Configured Commerce runs on **MUST be the same** (localhost in this case; Entra ID (formerly Azure AD) only allows non https to redirect back to localhost)
4. Set the redirect uri in Single Sign On for the ext client id to `http://localhost/identity/externalcallback` in the Admin Console

:::hint{type="info"}
**📘 Note**
This SSO set up only works in Firefox. Chrome and Edge browsers block a required cookie when not running in https.
:::
