Class TokenServerAuthenticator
- Namespace
- FishMMO.Server.Implementation
- Assembly
- FishMMO.Server.dll
Token-based server authenticator for World and Scene servers. Delegates all handshake, channel, worker, and protocol logic to TokenAuthenticatorCore<TConnection> in FishMMO-Auth. This class bridges FishNet broadcast events to the core and provides Unity/DB callbacks.
public class TokenServerAuthenticator : BaseServerAuthenticator, IServerAuthenticator
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourAuthenticatorTokenServerAuthenticator
- Implements
- Derived
- Inherited Members
-
Authenticator.InitializedAuthenticator.NetworkManagerAuthenticator.OnRemoteConnection(NetworkConnection)MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Properties
Core
The engine-independent authenticator core. Created by InitializeCoreInstance().
protected override BaseAuthenticatorCore<NetworkConnection> Core { get; }
Property Value
- BaseAuthenticatorCore<NetworkConnection>
Methods
CreateAccountManager()
Creates the appropriate IAccountManager<TConnection> for this authenticator type. SRP authenticators return an SrpAccountManager, token authenticators return a TokenAccountManager.
public override IAccountManager<NetworkConnection> CreateAccountManager()
Returns
- IAccountManager<NetworkConnection>
InitializeCoreInstance()
Creates the protocol-specific core instance. Called at the start of InitializeWorkers() before workers are started. Subclasses must create and store their typed core reference here.
protected override void InitializeCoreInstance()
OnConnectionStopped(NetworkConnection)
Override to release subclass-owned per-connection state when a remote connection stops. Called before the core purges its own auth state for the connection.
protected override void OnConnectionStopped(NetworkConnection conn)
Parameters
connNetworkConnectionThe connection that stopped.
OnUpdate()
Override for subclass-specific per-frame logic (e.g., additional rate-limit sweeps).
protected override void OnUpdate()
RegisterProtocolHandlers(NetworkManager)
Registers protocol-specific broadcast handlers (e.g., SRP or token auth). Called once during InitializeOnce(NetworkManager).
protected override void RegisterProtocolHandlers(NetworkManager networkManager)
Parameters
networkManagerNetworkManager
ShutdownWorkers()
Shuts down async workers and zeroes the cached signing-key KEK.
public override void ShutdownWorkers()