Skip to main content

Class NetworkAuthenticator<T>

Inheritance
System.Object
Mirage.Authentication.NetworkAuthenticator
Inherited Members
Show

Mirage.Authentication.NetworkAuthenticator.AuthenticatorName

Syntax
public abstract class NetworkAuthenticator<T> : NetworkAuthenticator, INetworkAuthenticator
Type Parameters
NameDescription
T

Methods

AuthenticateAsync(INetworkPlayer, T)

Called on server to Authenticate a message from client

Use OR . By default the async version just call the normal version.

Declaration
protected virtual UniTask<AuthenticationResult> AuthenticateAsync(INetworkPlayer player, T message)
Parameters
TypeNameDescription
Mirage.INetworkPlayerplayerplayer that send message
Tmessage
Returns
TypeDescription
Cysharp.Threading.Tasks.UniTask<Mirage.Authentication.AuthenticationResult>

Authenticate(INetworkPlayer, T)

Called on server to Authenticate a message from client

Use OR . By default the async version just call the normal version.

Declaration
protected virtual AuthenticationResult Authenticate(INetworkPlayer player, T message)
Parameters
TypeNameDescription
Mirage.INetworkPlayerplayer
Tmessage
Returns
TypeDescription
Mirage.Authentication.AuthenticationResult

SendAuthentication(NetworkClient, T)

Sends Authentication from client

Declaration
public void SendAuthentication(NetworkClient client, T message)
Parameters
TypeNameDescription
Mirage.NetworkClientclient
Tmessage