Repository navigation
ENG-3172: Add RequestPhotonEngineAuth for Photon custom auth - #166
Merged
Merged
Conversation
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
force-pushed
the
marc/ENG-3172-exitgames-custom-auth
branch
from
October 5, 2026 14:30
26d8225 to
020ffdf
Compare
marc-n-dream
marked this pull request as ready for review
October 6, 2026 11:00
marc-n-dream
marked this pull request as draft
October 6, 2026 11:05
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
NDreamAlex
approved these changes
Oct 6, 2026
marc-n-dream
marked this pull request as ready for review
October 7, 2026 09:49
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011MbtPMC9qpfdoiRzrEA4Rn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
RequestExitGamesAuth()and theonExitGamesAuth(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 toairconsole.requestExitGamesAuth()and postonExitGamesAuthback; the event fires on the main thread, withnullwhen refused. Requires airconsole-api 1.12.0 (AirConsole/airconsole-apimarc/ENG-3172-exitgames-custom-auth).Verification: compiled inside the example game