# ent0248/zenithproxy_3c3u_ofline_repair architecture

> Architecture diagram of the GitHub repository ent0248/zenithproxy_3c3u_ofline_repair, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ent0248/zenithproxy_3c3u_ofline_repair
- Repository: https://github.com/ent0248/zenithproxy_3c3u_ofline_repair

## Overview

ZenithProxy’s documented purpose is to repair offline-account login on servers that accept both premium and offline accounts. The sampled runtime centers on `Authenticator`: it selects offline profile creation or configured Java authentication, manages a persisted authentication cache, and refreshes cached credentials in the background. Device-code login can emit an event and optionally open a browser. The excerpt does not show the proxy’s broader connection flow or the implementation of `createMinecraftProtocol`, so those links are omitted.

Main entry points: [`Authenticator.java`](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java) (Authenticator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_login["Account Login"]
  node_auth["Authenticator<br/>[Authenticator.java]"]
  node_offline["Offline Profile<br/>[Authenticator.java]"]
  node_javaauth["Java Auth Manager<br/>[Authenticator.java]"]
end

subgraph group_cache["Auth Cache"]
  node_authcache[("Auth Cache File<br/>[Authenticator.java]")]
  node_refresh["Token Refresh<br/>[Authenticator.java]"]
end

subgraph group_device["Device Login"]
  node_devicecode["Device Code Handler<br/>[Authenticator.java]"]
  node_login_event["Login Event<br/>[Authenticator.java]"]
  node_browser["Web Browser Helper<br/>[Authenticator.java]"]
end

node_operator(("Proxy Operator"))

node_auth -->|"creates profile"| node_offline
node_auth -->|"starts configured login"| node_javaauth
node_auth -->|"loads cache"| node_authcache
node_javaauth -->|"saves session"| node_authcache
node_refresh -->|"loads and saves"| node_authcache
node_refresh -->|"refreshes credentials"| node_javaauth
node_devicecode -->|"posts event"| node_login_event
node_devicecode -->|"optionally opens"| node_browser

click node_auth "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_offline "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_javaauth "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_authcache "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_refresh "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_devicecode "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_login_event "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"
click node_browser "https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth,node_offline,node_javaauth toneBlue
class node_authcache,node_refresh toneAmber
class node_devicecode,node_login_event,node_browser toneMint
class node_operator toneIndigo
```

## Components

### Account Login

- [Authenticator](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`
- [Offline Profile](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`
- [Java Auth Manager](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`

### Auth Cache

- [Auth Cache File](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`
- [Token Refresh](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`

### Device Login

- [Device Code Handler](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`
- [Login Event](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`
- [Web Browser Helper](https://github.com/ent0248/zenithproxy_3c3u_ofline_repair/blob/main/Authenticator.java): `Authenticator.java`

### Other components

- **Proxy Operator**

## Connections

- Authenticator → Offline Profile: creates profile (evidence: `Authenticator.java`)
- Authenticator → Java Auth Manager: starts configured login (evidence: `Authenticator.java`)
- Authenticator → Auth Cache File: loads cache (evidence: `Authenticator.java`)
- Java Auth Manager → Auth Cache File: saves session (evidence: `Authenticator.java`)
- Token Refresh → Auth Cache File: loads and saves (evidence: `Authenticator.java`)
- Token Refresh → Java Auth Manager: refreshes credentials (evidence: `Authenticator.java`)
- Device Code Handler → Login Event: posts event (evidence: `Authenticator.java`)
- Device Code Handler → Web Browser Helper: optionally opens (evidence: `Authenticator.java`)
