t1k:unity:tof:authentication
| Field | Value |
|---|---|
| Module | tof |
| Version | 3.46.8 |
| Effort | medium |
| Tools | — |
Keywords: apple-sign-in, authentication, contracts, facebook, firebase, login, oauth, session
How to invoke
Section titled “How to invoke”/t1k:unity:tof:authenticationAuthentication
Section titled “Authentication”Scope — this is a candidate index, not an inventory. This skill indexes one source folder. A feature can span
Assets/TheOneFeature/,Packages/com.gdk.*, and siblingAssets/TheOne.*packages, and this skill will only show the folder it was built from. A capability missing here is not evidence that it is absent — verify against source (grep over a stated scope) before concluding anything does not exist. See The1Studio/theonekit-unity#350.
Purpose
Section titled “Purpose”Defines the authentication contract (IAuthenticationService, IAuthenticationMethod,
result/signal models) that concrete providers implement. Also ships editor-only validators and
Apple/Facebook post-process build steps for the platform SDK setup those providers need.
⚠️ This package is contracts-only. It contains no concrete IAuthenticationService /
IAuthenticationMethod implementation — its files are the interfaces, signals, result models and
5 editor validators/post-build steps. Searched across Assets/ and Packages/, the only
implementations are PlayFabWrapper : IAuthenticationService and
PlayFab{CustomId,Apple,Google,Facebook}AuthMethod : IAuthenticationMethod, all under
Assets/TheOneFeature/Core/Features/Playfab/Core/Scripts/Services/ — see the tof-playfab
skill. Do not read “a comprehensive authentication system” (this skill’s former description) as
meaning this package performs authentication; it defines the shape other packages authenticate
through.
Public API
Section titled “Public API”interface
IAuthenticationMethod(IAuthenticationMethod.cs)IAuthenticationService(IAuthenticationService.cs) classAppleSignInPostProcessBuild(AppleSignInPostProcessBuild.cs)AppleSignInValidator(AppleSignInValidator.cs)AuthenticationPlayerData(AuthenticationPlayerData.cs)AuthenticationValidator(AuthenticationValidator.cs)AuthResult(AuthResult.cs)FacebookAuthenticationValidator(FacebookAuthenticationValidator.cs)FacebookPostProcessBuild(FacebookPostProcessBuild.cs)
Signals / Events
Section titled “Signals / Events”UserLoggedInAndDataFetchedSignalUserLoginResultSignalUserLogoutSignalUserStartLoginSignal
Config / ScriptableObjects
Section titled “Config / ScriptableObjects”None detected.
Integration Steps
Section titled “Integration Steps”- Reference package
TheOneFeaturein your project. - Register the Authentication services via VContainer (see Architecture).
- Configure any ScriptableObjects listed in Config section.
- Subscribe to signals listed in Signals / Events to react to state changes.
Architecture
Section titled “Architecture”Detected public types (12): interface
IAuthenticationMethod(IAuthenticationMethod.cs)IAuthenticationService(IAuthenticationService.cs) classAppleSignInPostProcessBuild(AppleSignInPostProcessBuild.cs)AppleSignInValidator(AppleSignInValidator.cs)AuthenticationPlayerData(AuthenticationPlayerData.cs)AuthenticationValidator(AuthenticationValidator.cs)AuthResult(AuthResult.cs)FacebookAuthenticationValidator(FacebookAuthenticationValidator.cs)FacebookPostProcessBuild(FacebookPostProcessBuild.cs) structUserLogoutSignal(UserLogoutSignal.cs)UserStartLoginSignal(UserStartLoginSignal.cs) enumAuthenticationMethod(AuthenticationMethod.cs)
Dependencies
Section titled “Dependencies”Not yet documented. This section was never filled in; it is a known gap, not a
statement that the feature has no dependencies. Read the .asmdef next to the source
folder above for the authoritative list.
Hard rules
Section titled “Hard rules”- No concrete implementation lives here. Resolving
IAuthenticationService/IAuthenticationMethodfrom DI requires a provider package to be installed — in a stock TheOneFeature project that istof-playfab(PlayFabWrapper,PlayFabCustomIdAuthMethod,PlayFabAppleAuthMethod,PlayFabGoogleAuthMethod,PlayFabFacebookAuthMethod). Referencing only this package’s types will not authenticate against any backend. AppleSignInPostProcessBuild/FacebookPostProcessBuildare iOS/Android post-build steps — editor-only, no runtime effect.- Auth is further gated by
X_AUTHENTICATION(+_FACEBOOK/_APPLE), manual symbols toggled viaScriptDefineToolModule; seetof-core-editor.
References
Section titled “References”- Source:
Assets/TheOneFeature/Core/Features/Authentication/ - Doc:
Assets/TheOneFeature/Core/Features/Authentication/Core/README.md - Doc:
Assets/TheOneFeature/Core/Features/Authentication/CHANGELOG.md - Doc:
Assets/TheOneFeature/Core/Features/Authentication/Core/CHANGELOG.md - Namespace:
TheOne.Features.Authentication.Core,TheOne.Feature.Authentication.Core.Editor - Concrete implementations (not in this package):
Assets/TheOneFeature/Core/Features/Playfab/Core/Scripts/Services/— seetof-playfab