Single sign-on technical reference

How Breeze implements OpenID Connect single sign-on, for the people who set it up and secure it. For setup steps, see Set up your identity provider.

Flow

Breeze is a relying party using the OpenID Connect Core 1.0 authorization code flow with PKCE:

  • response_type=code, returned as query parameters (no form_post)
  • scope=openid email profile
  • A random state and nonce on every request, and a PKCE code_challenge with code_challenge_method=S256
  • login_hint when the person typed their email address in Breeze

State, nonce and code verifier are kept in the browser's Breeze session, which ties the callback to the browser that started the flow. A flow expires after 10 minutes and can only be completed once.

Breeze endpoints

EndpointAddress
Redirect URIhttps://app.breeze.pm/openid/callback
Log in with single sign-onhttps://app.breeze.pm/openid
Team sign-in linkhttps://app.breeze.pm/openid/<token>, shown in Settings

The sign-in link starts a normal Breeze-initiated flow, so it can be used as an app tile or a provider's "initiate login URI". Breeze does not accept unsolicited ID tokens.

Discovery

Breeze reads <issuer>/.well-known/openid-configuration and uses its authorization_endpoint, token_endpoint, jwks_uri, userinfo_endpoint and token_endpoint_auth_methods_supported.

  • The document's issuer must equal the issuer URL entered in Breeze. A trailing slash is the only difference allowed.
  • Every endpoint in it must be an HTTPS address.
  • The document and the signing keys are cached for a day. Test and save and Test again always read both afresh.

Client authentication

The code is exchanged at the token endpoint with the client secret:

  • client_secret_post when the provider lists it, otherwise client_secret_basic (form-encoded as RFC 6749 section 2.3.1 requires).
  • If the provider answers invalid_client, unauthorized_client or HTTP 401, Breeze tries once more with the other method. Other errors are not retried.
  • client_secret_jwt, private_key_jwt and public clients without a secret are not supported.

ID token validation

CheckRule
SignatureAgainst the provider's jwks_uri. Allowed: RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512. none and every HS algorithm are rejected. An unknown kid makes Breeze fetch the keys again, so key rotation needs no action.
issEqual to the issuer from discovery
audContains the client ID
azpEqual to the client ID when present, and required when aud has more than one value
expNot passed, with 60 seconds of leeway for clock differences
nonceEqual to the one this browser's flow was started with
subPresent

Any failed check refuses the sign-in with one message, "The sign-in from your provider couldn't be verified."

Claims

ClaimUsed for
subThe identity key. Once linked, a Breeze account is found by sub alone.
email, then preferred_username, then upnThe first one that is an email address is used to find the Breeze account on a person's first sign-in only.
nameFills in the name of an invited person who has not set one yet

When the ID token carries no email address and the provider has a UserInfo endpoint, Breeze calls it with the access token. Its answer is only used if its sub matches the ID token's. email_verified is not required, because an email match is never enough on its own (next section). Groups and other claims are not read.

Account matching

  • A team's provider can only sign in accounts in that team. It signs in the team's own members directly. A guest (someone whose own Breeze account is in another team) is only signed in on a team switch made from their own logged-in account, never by the provider alone.
  • A linked account is found by the provider's sub.
  • An unlinked account is found by email address, and linked only after the person proves the account is theirs: by opening the confirmation email in the same browser within 30 minutes, or by accepting an invitation. Being logged in to Breeze already does not count: any flow can be started by a link another site sends the browser to. In the iPhone and Android apps this first time is not offered: the person logs in once on the website, and from then on the app signs them in.
  • Breeze never creates an account from a sign-in, and never signs in a removed member.
  • Changing the issuer or client ID removes every link. Changing only the secret keeps them.

Network

All requests to your provider (discovery, keys, token, UserInfo) are made from Breeze's servers:

  • HTTPS only, with a valid certificate.
  • Host names are resolved first, and an address that is private, loopback, link-local or shared (for example 10.0.0.0/8, 169.254.0.0/16, 100.64.0.0/10) is refused. A provider must be reachable on a public address.
  • Redirects are not followed. Each request times out after 5 seconds, and responses over 1 MB are refused.
  • Breeze has no fixed outgoing IP addresses, so the provider cannot allow-list Breeze by IP.

The browser parts of the flow (authorization endpoint, your provider's login page) happen in the user's browser, so they only need to be reachable for your users.

What Breeze stores

  • The issuer URL, client ID and client secret. The secret is encrypted at rest and never shown again in Breeze after saving.
  • For each linked account, the provider's sub.

ID tokens, access tokens and refresh tokens from your provider are used once during sign-in and not stored. Breeze never asks for offline_access.

Sessions

  • A single sign-on log-in creates a normal Breeze session, which lasts until the person logs out.
  • Disabling someone in your provider stops their next sign-in, but does not end an existing Breeze session. Remove them from the team in Breeze to end their access.
  • Logging out of Breeze does not log out of your provider, and Breeze does not take part in single logout.
  • Personal API tokens and OAuth tokens issued to connected apps are not affected by single sign-on.

Troubleshooting

When the account owner runs Test and save, the provider's own error text is added in brackets after the message.

MessageWhat it means
That issuer URL doesn't look right.The address is not HTTPS, is malformed, or resolves to a private address.
We couldn't reach your provider at that address.No discovery document at <issuer>/.well-known/openid-configuration, a DNS or TLS error, or a timeout. Check the issuer URL against your provider's documentation.
Your provider reports a different issuer URL.The discovery document's issuer differs from what was entered. Common with Microsoft Entra's /common address; use the tenant-specific one.
Your provider didn't accept the client ID or secret.Wrong client ID or secret, an expired secret, or a client set to an authentication method Breeze does not support.
The sign-in was cancelled at your provider.The provider returned an error, often access_denied because the person is not assigned to the app.
Your provider didn't finish the sign-in.The token request failed for another reason, for example invalid_grant or a redirect URI mismatch.
The sign-in from your provider couldn't be verified.An ID token check failed (signature, algorithm, issuer, audience, expiry or nonce). Check that the token is signed with RS256 and that the server clocks are right.
That took too long. Please try again.More than 10 minutes passed, or the callback came back in a different browser or a second time.
No single sign-on is set up for this address.The email typed on the Breeze log in page has no account in a team with single sign-on connected.
You're not in this team yet. Ask your team for an invitation.The provider's user matches no member of the team. Invite them in Breeze first.
Open the link in the browser where you started logging in.The confirmation email was opened in a different browser, or a second time.
This link has expired. Log in again to get a new one.The confirmation link is older than 30 minutes or was changed.
Log in once on the Breeze website first. After that, the app signs you in.The person's first single sign-on was started in the iPhone or Android app. It has to be done once on the website, where the confirmation email can be opened.
Log in to your own Breeze account first, then open this team.The provider signed in a guest of the team, outside a switch from their own account. Guests log in to their own account, then switch into the team.
This team signs in with single sign-on. Ask the team for an email invitation.Someone used a team or project invite link to sign up to a team that requires single sign-on.
Your team's single sign-on isn't working right now. Ask your team's owner to check it.Breeze could not reach the provider when someone tried to log in. The account owner can still log in with a password.

A redirect URI mismatch is usually reported by your provider on its own page before anything reaches Breeze, for example Okta's "The 'redirect_uri' parameter must be a Login redirect URI" or Entra's AADSTS50011. Check that the redirect URI is exactly https://app.breeze.pm/openid/callback.