Skip to main content

TavernLib.Backend.RemoteConsole

Every type in TavernLib.Backend.RemoteConsole, from TavernLib's own assembly. See the overview for how these pages are made.

TypeKindPublic membersWhat it is
ConsoleAuthinternal static class9Internal: console logins. Keeps server_secret.key and the owner token in console_token.txt, signs named tokens, and checks every console login. Server.
ConsoleAuth.LoginPathenum2Which console a login came through: the websocket console, or another one. Named tokens only work on the websocket console.
ConsoleTokenclass13One named console token's row in console_tokens.json. Only its id and generation travel in the token, so an edit to its access applies at once.
ConsoleTokenFileclass1The ServerConfigFile for console_tokens.json. Only ConsoleTokenStore reads and writes it.
ConsoleTokenListclass3The contents of console_tokens.json: the named tokens and the owner token's generation. Unknown fields are kept.
ConsoleTokenLoginternal static class3Internal: writes console_token_log.jsonl, one JSON line per console connect, disconnect, command and refused login. Never a token's text; rolls to .1 past 5 MB.
ConsoleTokenStoreinternal static class12Internal: console_tokens.json with an in-memory copy rebuilt after each write, so the check on every command never reads the disk. Server; only the server writes the file.
ConsoleTokenStore.Entryprivate class4Private: one named token in the in-memory copy, with its granted paths worked out ahead for the per-command check.