Set up one account for three village services: SSO SAML, SPA tokens, PKCE, and password rules. 15 levels, played right in the browser with nothing to install.
SSO (Single Sign-On) lets a villager sign in once, then into many services without typing a password again. Three parties: the user (the villager), the IdP (identity provider, here Akun Sukamaju, where they sign in), and the SP (service provider, the app they want in). Real SAML runs here: Akun Sukamaju signs a letter with samlify, the service checks it with @node-saml/node-saml. The grade is who each service recognises, not the code’s text.
There are three places to keep a sign-in mark in the browser. localStorage: a key hung on the wall, anyone who walks in can take it. Memory (a variable): a key in your pocket, safe but gone on reload. An HttpOnly cookie: a key the caretaker holds, he opens the door but never hands it over. Here the page and its riding script run for real in Chromium and WebKit, and what the riding script can read is recorded as it is.
A session cookie carries three flags that guard it. HttpOnly: page script cannot read it. Secure: sent only over https. SameSite: Lax or Strict keeps it from cross-site requests, so another site’s form cannot ride a villager’s session. Here the cookie is set in a real browser, and its behaviour is read from the browser, not from the code.
OIDC (OpenID Connect) is a sign-in layer on top of OAuth 2.0, the protocol behind "Sign in with Google". PKCE (Proof Key for Code Exchange) ties one request to one app with no shared secret: the app makes a random verifier, sends its digest, and proves itself when it exchanges the code. Here oidc-provider decides for real: it requires PKCE from a public client and refuses a code whose verifier does not match.