How browser privacy changes affect federation
Older federationAn arrangement that lets systems accept identity information from another trusted system, so an application can rely on a sign-in performed by a separate identity provider. techniques quietly relied on a provider's cookies travelling inside another site's page. Browsers now block or partition those third-party cookies, so the collage app's silent sign-in and logout signals stop working unless it moves to top-level redirects and server-to-server messages.
What federation borrowed from the browser
The first version of the collage app, at collage.example, kept its tokens in the browser. Access tokens lasted ten minutes, and when one ran out the collage app asked the photo service for another without bothering Ava. It did that with a hidden frame: a small invisible iframe whose address was an ordinary authorizationDeciding whether a requested action is permitted, such as whether a signed-in account may delete a particular photo. Authentication says which account is asking; authorization decides what it can do. request with prompt=none, which Prompt and account selection described as a request that must not show a page. If Ava was still signed in at auth.photos.example, the frame came back with a fresh code. For two years that worked in every browser the collage app's developers tested.
Then support tickets started arriving from people who used Safari. They were signed out of the collage app about ten minutes after opening it, every time, although the photo service itself still showed them as signed in. Nothing in the collage app's code had changed. The browser had.
The silent frame depended on one thing the collage app's developers never wrote down: that the browser would send the photo service's sessionThe ongoing connection between later requests and an earlier sign-in, so you are not asked for your password on every click. It is often tracked with a cookie holding an unpredictable session identifier. cookie with a request made from inside a page on another site. Several older federation techniques lean on the same assumption. As Front-channel logout and browser session checks showed, the OpenID ConnectAn identity layer on top of OAuth 2.0 that lets an application sign people in with an account at another service. It adds the ID token, standard claims, and discovery to the OAuth exchange. session check frame reads the provider's state from inside the relying partyAn application that accepts and relies on a sign-in from another service, the name used in OpenID Connect and for passkeys. SAML calls the same role a service provider.'s page, and front-channel logout loads each relying party's page in a frame inside the provider's page. In each case one site's cookies travel inside another site's page, which is exactly what makes them third-party cookies. As What browsers add explained, the browser compares sites by registrable domain: collage.example and photos.example are different sites, so inside the collage app's page the photo service is a third party.
Blocking and partitioning
Third-party cookies are also how advertising networks follow people from site to site, and browsers have spent years taking that ability away. They do it in two ways. Blocking withholds a third party's cookies entirely. Partitioning gives the third party a separate cookie jar for each top-level site it appears on, so the photo service framed inside collage.example gets a jar keyed to collage.example, empty unless something set a cookie there before. Its real session cookie, set when Ava signed in at the top level, lives in the jar for photos.example and stays there.
Either way, the framed request reaches the photo service with no session cookie. The defaults differ by browser and keep moving, so treat the table as a snapshot:
| Browser | Default for third-party cookies |
|---|---|
| Safari | Blocked, with no setting to allow them for a site |
| Firefox | Partitioned for every site (Total Cookie Protection), with stricter blocking available |
| Chrome and Edge | Sent, unless the person blocks them in settings; blocked in private browsing. Google dropped its plan to remove them in 2025. |
Storage follows the same rule in every current browser. localStorage, IndexedDB and similar storage inside a cross-site frame are partitioned by the top-level site, so a framed page cannot read what its own site stored at the top level either.
A newer cookie attribute, Partitioned, lets an embedded service ask for a partitioned cookie on purpose in browsers that would otherwise block it. It is often mentioned under the name of its proposal, CHIPS. It helps a chat widget remember its state on one site, and it does nothing for federation: a partitioned cookie is, by design, a different cookie on every site, so it can never carry a session that began on the provider's own pages.
The Chrome row matters less than it looks. A relying party serves everyone who arrives, including the many people on Safari, on Firefox, in private windows and with cookies blocked by choice. A design that works only where third-party cookies happen to flow is broken for a large share of its users today.
Silent sign-in in a frame
Here is the collage app's renewal request as the photo service received it from a Safari user who was signed in:
GET /oauth/authorize?response_type=code&client_id=photo-collage
&redirect_uri=https%3A%2F%2Fcollage.example%2Fsilent-callback
&scope=openid%20photos.read&state=k3Jq9w&prompt=none
&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=S256 HTTP/1.1
Host: auth.photos.example
Sec-Fetch-Dest: iframe
Sec-Fetch-Site: cross-siteThe query string is split across lines for reading. The headers say the request came from a frame on another site, and one header is missing: there is no Cookie. The photo service cannot see any session, and prompt=none forbids it from asking, so it answers exactly as the specification says it must:
HTTP/1.1 302 Found
Location: https://collage.example/silent-callback?error=login_required&state=k3Jq9w
&iss=https%3A%2F%2Fauth.photos.exampleFrom the collage app's side, login_required means Ava is signed out, so it threw away its tokens and showed its sign-in button. Ava was never signed out. The answer was correct for the request the provider received; the request simply did not carry what the collage app assumed it did.
The same request works when it is not in a frame. If the collage app sends the whole tab to the authorization endpoint, the photo service is the site in the address bar, its cookie is first-party, and even a SameSite=Lax cookie is sent with a top-level navigation. With an existing session the photo service redirects straight back with a code, usually in well under a second, so people see a brief flash at most. Many providers also refuse to be framed at all, sending X-Frame-Options: DENY or a frame-ancestors rule to protect their sign-in pages from clickjacking, where another site shows a provider page in a hidden or disguised frame and tricks the person into clicking on it. That ends the frame approach before cookies even come into it.
Logout signals that stop arriving
Logout suffers in the opposite direction. Front-channel logout puts the relying parties' logout pages in frames inside the provider's signed-out page, so now the relying parties are the third parties. Front-channel logout showed how a relying party's logout page would receive no cookie and see an empty, partitioned copy of its storage, and how it can still end Ava's session if it looks sessions up by the iss and sid in the request. An application that keeps its session only in the browser has no such fallback.
The session check frame is worse off. Its whole job is to read the provider's browser state from inside the relying party's page, and with blocking or partitioning that state is simply not there, so the frame reports a change, or no session, on every check. Session management already called itself rarely used for this reason. Neither logout signal fails loudly: a frame that loaded nothing looks much like one that succeeded, which is why these failures surface as support tickets rather than errors.
The Storage Access API
Browsers do offer an escape hatch for embedded content that genuinely needs its own cookies. With the Storage Access APIAn application programming interface: a defined way for software to interact with a service. A web API offers endpoints where other programs send HTTP requests., a page inside a frame asks the browser for access to its unpartitioned cookies:
button.addEventListener('click', async () => {
if (!(await document.hasStorageAccess())) {
await document.requestStorageAccess();
}
// From here, requests from this frame carry the provider's own cookies.
});The call must come from a click or a tap inside the frame, and the browser decides. Safari grants access only to a site you have used as a top-level site before, and it may ask you to confirm; Chrome and Firefox apply their own rules and prompts. Safari, Firefox and Chrome all support the API.
Those conditions are reasonable for an embedded document editor or a comment box that you click on anyway. They do not fit sign-in plumbing. A tokenA piece of data issued by a trusted service that a client presents as a credential, for example to call an API or to report a sign-in. Some tokens carry readable claims; others are random strings that only the issuer can interpret. renewal has to happen silently, with nobody clicking anything, and a logout frame has nobody to ask at all. The Storage Access API can rescue a visible embedded sign-in button, not the invisible machinery behind it.
FedCM
Federated Credential Management, or FedCM, takes the opposite approach. Instead of letting cookies cross between sites, the browser itself runs the step that needed them. The relying party asks the browser for a sign-in from a named provider:
const credential = await navigator.credentials.get({
identity: {
providers: [{
configURL: 'https://auth.photos.example/fedcm/config.json',
clientId: 'photo-collage',
}],
},
});
// credential.token holds what the provider issued, such as an ID token.The browser fetches a small file at https://photos.example/.well-known/web-identity to confirm the configuration belongs to the provider's site, reads the configuration, and then calls the provider's accounts endpoint with the provider's own cookies. It shows the accounts in its own dialog, outside both sites' pages. Only after Ava picks one does it ask the provider's assertion endpoint for a token and hand that token to the collage app. The provider never learns which site asked until Ava agrees, and the collage app never touches the provider's cookies.
FedCM changes who renders the account choice, not what the relying party must check. The token that arrives is validated exactly as Validating an ID tokenIn OpenID Connect, a signed JWT from the provider, addressed to one client, saying which account authenticated, when, and in answer to which request. It reports a sign-in and is not used to call APIs. describes, including a nonceA random value used for one attempt only. In OpenID Connect, the client sends one in its sign-in request and checks that the same value comes back inside the ID token, showing the token answers this attempt. the relying party supplies, which the provider places in the token. The provider has to build the FedCM endpoints, and support is uneven:
| Browser | FedCM |
|---|---|
| Chrome and Edge | Supported |
| Firefox | Not shipped; work in progress |
| Safari | Not supported |
The API is still being standardized at the World Wide Web Consortium (W3C), the body that publishes web standards such as WebAuthnThe W3C browser API that lets a website register and use public-key credentials, such as passkeys and security keys. The site sends a challenge, and the authenticator signs it with a key scoped to that site., and has changed between browser versions. A relying party can offer it where it exists, but it still needs a redirect-based sign-in for every other browser, so FedCM adds a path rather than replacing one.
Bounce tracking mitigations
Blocking third-party cookies pushed trackers toward a workaround: send the browser through the tracker's own site for a split second, where its cookies are first-party, and straight back again. Browsers answered with bounce tracking mitigations. Safari, Firefox and Chrome each watch for sites that appear only in redirect chains, and periodically delete the storage of a site you have not interacted with directly within a recent period, such as the last month and a half.
A federated sign-in is a redirect chain, so it is worth knowing what counts. A provider where people type passwords or approve passkeys has plenty of interaction, because signing in is interaction, and keeps its cookies. The risk falls on sites that only ever bounce: a federation hub that forwards each person to their organization's provider without showing a page, or a provider whose sessions people only ever reach silently from other sites. If such a site's cookies are cleared, people find themselves asked to sign in again, or to choose their organization again, with no obvious cause. A step where the person acts on the site's own page, such as remembering their choice of organization, keeps it in the clear.
What a relying party should do instead
The collage app's developers rebuilt it around the backend described in OpenID Connect in single-page and native apps, and each change replaced one browser assumption with something that holds in every browser:
| Pattern that breaks | Replacement | Why it holds |
|---|---|---|
Renewing tokens with prompt=none in a hidden frame | Refresh tokens held by the backend, as in Backends for frontends | The renewal is a server-to-server request; no browser cookie is involved |
| Checking for a provider session with a silent frame | A top-level redirect with prompt=none when the app opens | The provider is first-party in the address bar |
| Front-channel logout or the session check frame | Back-channel logout, with sessions found by sid | The provider calls the relying party directly |
| An embedded sign-in widget that reads the provider's cookies | A redirect, or FedCM where the browser supports it | The browser, not a frame, handles the provider's state |
Tokens kept in localStorage and shared with a frame | A server-side session behind an HttpOnly cookie on the app's own site | First-party cookies are not affected, and scripts cannot read the token |
An organization whose own applications and provider share one registrable domain, like the Lantern Studio portal and its provider under lantern.example, sees fewer of these problems, because its frames are same-site. That is a fact about one deployment, not a design that carries over to relying parties on other domains, and it does nothing for bounce tracking or for people who block all cookies.
The common thread is to treat the provider's session cookie as something only the provider sees, at the top level. A relying party learns about that session by sending the browser to the provider and reading what comes back, and learns that it ended by listening on its own server. Nothing it depends on then needs one site's cookie inside another site's page.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Ask silently at the top level, see a cookieless request fail, and listen server to serverGet a code for lab-collage with prompt=none at the top level, send the same request without the provider's cookie to see what a blocked frame receives, then let sign-out reach lab-collage by back-channel.