Skip to content

v0.18.4 - WebGL Google sign-in inside a third-party iframe

Pre-release
Pre-release

Choose a tag to compare

@sleepymor sleepymor released this 22 Oct 05:11
· 30 commits to master since this release

Fixes Google sign-in for the WebGL build when the game is embedded in itch.io's iframe.

The defect
Google Identity Services refuses to render its prompt inside a cross-origin iframe that is not explicitly permitted. The previous bridge loaded the GSI client and called prompt() directly, so on itch.io the call silently produced no token - the button appeared to do nothing.

What changed

  • WebGL Google auth bridge rewritten to handle the iframe case, and to surface a real reason when sign-in cannot proceed instead of failing silently.
  • Decline and failure paths now map to distinct AuthResult values rather than a blank token.
  • New tests: GoogleDeclineMappingTests, plus a dedicated Overlink.Net.Tests assembly.
  • Local reproduction harness under Tools/WebGL (gsi-bridge-test.mjs and an iframe probe) so the behaviour can be exercised outside a browser deploy.
  • Auth setup and flow docs updated.

Carried from v0.18.2/v0.18.3
Core rules fixes CR-01, CR-02, CR-03; presentation fixes PR-01, PR-02, PR-03, PR-05; networking fix NET-01; account-gated boot with Auth scene and protected-scene guard.

Known, not fixed (design decisions)

  • CR-04: automatic reshuffle vs. the specified deck-out condition.
  • CR-05: Volley resolves against Core Actives only.
  • CA-01: Interdiction Net advertises an unimplemented mechanic.

Verification note
Butler push success and a green CI run prove the artifacts were built and uploaded. They do not prove that Google sign-in works in a browser on itch.io - that needs a live click-through, which this release does not claim.