How Does a Staffbase Widget Know Who You Are?
Widgets used to trust unverified user data. Since Widget Builder 3.14.0 the identity arrives as a signed token you verify through JWKS.

A widget in your Staffbase intranet greets you by name, knows your space and filters content for you. How does it know who you are? For a long time the honest answer was: it does not know. It believes what the page tells it.
Where does a widget get its identity?
The Widget Builder has two authentication modes per client. In signed mode the widget starts the Staffbase OAuth/OIDC login and receives two tokens from the host session: an id_token that identifies the person, and an access_token for Staffbase API access.
Both are JWTs, JSON Web Tokens: small data packets made of header, claims and a signature. A signature is a checksum over the content, created with the issuer’s private key. Change one character of the content and it no longer matches. The format is defined in RFC 7519 (opens in a new tab).
The second mode is called unverified. Widgets load there without a signed login. Native bundles also get a recovery path: when signed authentication cannot complete inside the Staffbase app or a restrictive browser, the widget reads the identity from the host page or the app context.
Why is a browser-supplied identity worthless?
That recovery path was the problem. User id, display name, locale and branch id came from the frontend. Issue #1600 in the Widget Builder states it plainly: these values are not cryptographically verified and are forgeable. The fallback token of the time even carried alg: none in its header, meaning no signature at all, and urn:staffbase-wb:unverified as its issuer.
For a backend that means it receives a user id and has no way to check anything about it. Anyone replaying the request can insert any id.
What changed with release 3.14.0?
Since the release widget-builder-v3.14.0 of 8 July 2026 the unsigned token is gone. The Widget Builder issues the fallback token itself and signs it with RS256. The claims mirror the Staffbase token wherever the data exists: iss (issuer), aud with the same audience as the Staffbase token, sub with the Staffbase user id, plus display name, locale, branch id, iat and exp.
A marker claim wb_unverified_fallback: true stays in the token. Requests made with it also send the header X-Widget-Builder-Auth-Mode: unverified-fallback, so a receiving system can reject that traffic at the edge without reading the token.
How does your backend verify such a token?
Like any other OIDC token. You need the issuer’s public key, the counterpart to the private key used for signing. Public means everyone may know it. You can verify with it, not sign.
The Widget Builder publishes those keys as a JWKS, a JSON Web Key Set (RFC 7517 (opens in a new tab)): a JSON file holding every currently valid public key. It sits at GET <issuer>/.well-known/jwks.json. You pick the right key through the kid (key id) entry in the token header.
That path is not a house rule but the location standardised in RFC 8615 (opens in a new tab) for metadata like this. Up to version 3.13.0 the Widget Builder served the key set only at /api/.well-known/jwks.json. When a client requested the root path with Accept: text/html, the frontend answered with HTML instead of JSON. Issue #1671 fixed that: since 3.14.0 the JWKS is served at the root path as well, and the old /api path stays available for existing integrations.
Four checks belong in your code: the signature against the JWKS, iss against the expected issuer, aud against your OAuth client id, and the marker claim. Backends without fallback support reject every token carrying wb_unverified_fallback: true.
What does the signature prove, and what does it not?
It proves provenance. The token came from the Widget Builder and was not altered in transit. It does not prove that the person in the token is the person at the device, because the claims still come from the browser.
One hard rule follows from that: no authorisation decision on a fallback token. No role check, no access to protected data. The fallback exists so a widget keeps rendering inside the app, not to grant permissions.
What should you decide now?
Settle three questions per backend and write the answers down. Do you accept fallback tokens at all? Which endpoints are reachable with one, and which require a signed Staffbase login? And do you already reject X-Widget-Builder-Auth-Mode: unverified-fallback at the reverse proxy?
The default stays signed. Switching a client to unverified requires an explicit confirmation in the interface because it relaxes a guarantee. The technical detail is in the authentication modes documentation (opens in a new tab).
Do you run a backend behind Staffbase widgets and want the token check set up properly? Get in touch. We walk through issuer, audience, key retrieval and rejection rules with you.
Over 20 years of experience with development, SharePoint, and Microsoft 365. Sascha advises companies on implementing and optimizing digital workplaces – from strategy to technical implementation.
Learn more about the author →