Table of Contents

Class ClientGateSecret

Namespace
FishMMO.Client.Security
Assembly
FishMMO.Client.dll

IL-embedded client gate secret.

The default here is a sentinel, and this file is tracked so the project always compiles. The real value lives in the gitignored ClientApiSecret.generated.cs, written by FishMMO Dashboard > Game Settings (or by CI substituting FISHMMO_CLIENT_GATE_SECRET into GeneratedFileTemplates/ClientApiSecret.generated.cs.template), which implements FishMMO.Client.Security.ClientGateSecret.Configure(FishMMO.Client.Security.ClientGateSecret.Values) to overwrite it. See HostConfig for why the generated file no longer declares the whole class.

public static class ClientGateSecret
Inheritance
ClientGateSecret
Inherited Members

Remarks

Must be public so the Editor assembly (FishMMO.Client.Security.Editor / Editor.ClientSecurityBuildValidator) can read the sentinel. internal is assembly-scoped only and caused CS0122.

Fields

Secret

Shared secret for X-FishMMO-Client HMAC header signing. The default is a sentinel — the dashboard or CI must replace it.

public static readonly string Secret

Field Value

string