Every term the documentation uses without defining it on the spot, and where it is explained. The specifications behind them are in STANDARDS.md.
| Term | Meaning | Explained in |
|---|---|---|
| Access token | Short-lived JWT (five minutes) that authorizes one request. | Authentication: Every API request is authorized by a token |
| Account action | A Keycloak page alone, kc_action: the password, or turning the second factor on or off. |
Authentication: Account actions |
| Artist, stage | The lineup: who performs and where. | festival — back-end: Layout |
| Attribute | A named list of option values, such as sizes, a product's options are chosen from. | festival — back-end: Layout |
| Audience | The aud claim naming whom a token is for; a token for anyone else is refused. |
Authentication: Every API request is authorized by a token |
| Authorization code flow | Sign-in by redirecting to Keycloak and exchanging the code it returns, on the server. | Authentication: Signing in |
| BFF (backend for frontend) | The back-end signs the user in and keeps the tokens; the browser holds only a session cookie. | Authentication |
| Cart | The products a visitor is about to order; it lives in the browser until an order is placed. | Order placement |
| Catalog | Every label and error key of both applications, in Polish and English, owned by the back-end. | Error responses |
| Checkout switch | FESTIVAL_CHECKOUT_ENABLED, which stops orders without hiding the shop. |
Order placement |
| CSRF token | The __Host-XSRF-TOKEN cookie value every unsafe request repeats in X-XSRF-TOKEN. |
CSRF |
| Keycloak realm | The Keycloak tenant holding this application's users, roles and clients. | Authentication |
| Login client | festival-page or festival-admin: one Keycloak client per application, each with its own landing path. |
Authentication: Two clients |
| Message key | A key of the catalog the back-end sends instead of a sentence; the front-end renders it. | Error responses |
| News, sponsor | The festival's content, edited in the admin panel. | festival — back-end: Layout |
| Object storage | S3-compatible storage for images (Garage locally); images are served from it directly. | Media storage |
| Order | A placed cart, keyed by the customer's Keycloak identifier. | Order placement |
| Override | An administrator's text for a key, set one at a time or by importing a spreadsheet. | Translation catalog |
| PKCE | A one-time secret binding the returned code to the browser that started the sign-in. | Authentication: Signing in |
| Problem document | The JSON body of every refusal, carrying a message key and its arguments. | Error responses |
| Proxy | Each Next.js application forwarding /api, /oauth2, /login/oauth2 and /logout to the back-end. |
Architecture: Three applications, one back-end |
| Refresh token | Long-lived token traded for a new access token; Keycloak rotates it on every use. | Token refresh |
| Refresh token rotation | Every refresh invalidates the refresh token it used; replaying a spent one ends the session. | Token refresh |
| Return page | return_to: the page a sign-in comes back to, kept beside the sign-in in the session; a path on this site only. |
Authentication |
| Session | __Host-FESTIVAL_SESSION, kept in Redis as JSON for ten hours, holding the tokens. |
Token refresh |
| Shop settings | Shipping price and stock visibility, changed by an admin. | Order placement |
| Sign-in theme | The look Keycloak gives its pages and mails, the app's own, as keycloak/themes. |
Authentication: The sign-in pages |
| Sign-out | Ends the local session and the Keycloak session. | Authentication: Signing out |
| Single-flight refresh | One refresh per refresh token, shared by every request of the session that needs it at once. | Token refresh |
| Stock reservation | Taking stock line by line when an order is placed, released again if any line fails. | Order placement |
| Wishlist, address | A signed-in customer's saved products and delivery addresses. | festival — back-end: Accounts |