Skip to content

ENG-3172: Add RequestPhotonEngineAuth for Photon custom auth - #166

Merged
marc-n-dream merged 7 commits into
masterfrom
marc/ENG-3172-exitgames-custom-auth
Oct 8, 2026
Merged

marc-n-dream merged 7 commits into
masterfrom
marc/ENG-3172-exitgames-custom-auth

Conversation

@marc-n-dream

@marc-n-dream marc-n-dream commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Adds RequestExitGamesAuth() and the onExitGamesAuth(string ticket) event so Unity games can pass an AirConsole-issued ticket to Photon Custom Authentication (AuthenticationValues.AddAuthParameter("ticket", ticket)). Spike: ENG-3172.

Same round trip as RequestPersistentData: both WebGL templates forward to airconsole.requestExitGamesAuth() and post onExitGamesAuth back; the event fires on the main thread, with null when refused. Requires airconsole-api 1.12.0 (AirConsole/airconsole-api marc/ENG-3172-exitgames-custom-auth).

Verification: compiled inside the example game

marc-n-dream and others added 2 commits October 5, 2026 16:26
RequestExitGamesAuth needs airconsole.requestExitGamesAuth(), which
airconsole-api 1.12.0 provides. The WebGL templates and the example
controllers now load 1.12.0, and the build checks reject a template that
loads an older API.

Refs: ENG-3172

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011MbtPMC9qpfdoiRzrEA4Rn
Unity games can request a short-lived ticket for Photon (ExitGames) Custom
Authentication and pass it to Photon with
AuthenticationValues.AddAuthParameter("ticket", ticket).

RequestExitGamesAuth() follows the RequestPersistentData round trip: the
WebGL templates forward it to airconsole.requestExitGamesAuth() and post
onExitGamesAuth back, WebsocketListener raises it, and the event fires on the
main thread with the ticket, or null when the backend refused the request.
Requires airconsole-api 1.12.0.

Refs: ENG-3172

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011MbtPMC9qpfdoiRzrEA4Rn
@marc-n-dream
marc-n-dream force-pushed the marc/ENG-3172-exitgames-custom-auth branch from 26d8225 to 020ffdf Compare October 5, 2026 14:30
@marc-n-dream marc-n-dream self-assigned this Oct 6, 2026
@marc-n-dream
marc-n-dream marked this pull request as ready for review October 6, 2026 11:00
@marc-n-dream
marc-n-dream removed the request for review from NDreamAlex October 6, 2026 11:05
@marc-n-dream
marc-n-dream marked this pull request as draft October 6, 2026 11:05
@marc-n-dream marc-n-dream changed the title ENG-3172: Add RequestExitGamesAuth for Photon custom auth ENG-3172: Add RequestPhotonEngineAuth for Photon custom auth Oct 6, 2026
airconsole-api 1.12.0 renamed requestExitGamesAuth / onExitGamesAuth to
requestPhotonEngineAuth / onPhotonEngineAuth (airconsole-api#113).
Rename the plugin to match: RequestPhotonEngineAuth(), the
onPhotonEngineAuth event, and the plugin messages in both WebGL
templates. Compiled with Unity 2022.3.62f3 in batchmode, no errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G23yYApZ1qkZZtBtqRcwxt
@marc-n-dream
marc-n-dream marked this pull request as ready for review October 7, 2026 09:49
marc-n-dream and others added 3 commits October 7, 2026 12:11
New public events use PascalCase. The private handler becomes
HandlePhotonEngineAuth so that it does not clash with the event name.
The JS action names stay, because airconsole-api defines them.

Refs: ENG-3172

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011MbtPMC9qpfdoiRzrEA4Rn
Existing camelCase events stay until a deprecation plan exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011MbtPMC9qpfdoiRzrEA4Rn
@marc-n-dream
marc-n-dream merged commit d9ab020 into master Oct 8, 2026
3 checks passed
@marc-n-dream
marc-n-dream deleted the marc/ENG-3172-exitgames-custom-auth branch October 8, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants