38 Commits
Author SHA1 Message Date
Nighthawk42andClaude Opus 4.8 c0a5dc49bf Add PyInstaller/flet-pack build tooling for standalone exes (v2.0.0-alpha)
Add packaging/ with entry scripts and build_exes.py: the CLI is frozen with
PyInstaller (one-file console) and the GUI with `flet pack` (PyInstaller plus
the bundled Flet desktop runtime). Both bundle settings.yaml as data so the
frozen binaries load their defaults via importlib.resources, and the script
zips the results into release/ for upload.

Bump version to 2.0.0a0, gitignore build artifacts (*.exe, *.zip, *.spec,
dist/build/release), add a `build` extra, and document pre-built binaries and
the build process in the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 21:31:53 -04:00
Nighthawk 6580432070 Update README with development notes and warnings
Added important notes about the project's development status and LLM-assisted code generation.
2026-06-13 20:28:04 -04:00
Nighthawk42andClaude Opus 4.8 24c6fb393a Add README tagline + GUI mention in package description
Surface a short "About"-style tagline at the top of the README and note the
optional GUI in the pyproject description.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 20:19:24 -04:00
Nighthawk42andClaude Opus 4.8 c416e98162 Add optional Flet desktop GUI and live TOTP code generation
Add src/bnet_auth_tool/gui.py: an imperative Flet 0.85 desktop app behind a
new `gui` extra, exposed as the `bnet-auth-gui` entry point. It reuses the
same vault, crypto, settings, and TOTP modules as the CLI — lock screen,
authenticator list with live rotating codes, detail dialog (QR/copy/delete),
legacy import, and online attach/retrieve (kept labelled unverified).

Add RFC 6238 TOTP code generation to totp.py (current_code / seconds_remaining,
pure stdlib) with reference-vector tests, since the GUI displays live codes.

Update README/AGENTS.md and uv.lock for the GUI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 20:17:27 -04:00
Nighthawk42andClaude Opus 4.8 023ccd9f74 Rewrite as a packaged tool with an encrypted vault (v2.0.0)
Replace the single-file v1.3.1 script with a proper src/bnet_auth_tool/
package: config (YAML settings + platformdirs), crypto (scrypt + AES-256-GCM
with a versioned header; legacy PBKDF2 100k/600k still decrypt), storage
(single encrypted vault), fileio (atomic 0600 writes), api, totp, migrate, and
a cli with an interactive menu plus argparse subcommands.

Security/audit fixes: drop catch-all excepts, stop leaking server bodies/tokens
in errors, atomic permission-hardened writes, explicit Ctrl-C handling,
versioned format header, best-effort passphrase scrubbing.

Add packaging (pyproject for uv, organized requirements.txt fallback, uv.lock),
.gitignore, settings.yaml, CLAUDE.md/AGENTS.md, 22 pytest tests, and ruff
config. Online attach/retrieve is preserved but kept labelled unverified.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 19:56:35 -04:00
Nighthawk 0db5fa287e Merge pull request #5 from weslenng/fix/realign-authenticator-api-v2
fix: realign authenticator online flows with current Blizzard API
2026-06-13 19:28:18 -04:00
weslenng 70e5d0fc15 fix: realign authenticator online flows with current Blizzard API
The Authenticator REST API changed and broke the online flows. Realign
them with the contract used by the current official Battle.net client.

- Retrieve moved from POST /v1/authenticator/device to
  POST /v2/authenticator/device and now requires an accountIdentifier
  (account email or phone) alongside serial and restoreCode.
- Drop the SSO/bearer requirement from retrieve: the v2 endpoint
  authenticates via accountIdentifier + serial + restoreCode, mirroring
  restoreAuthenticator in the official app.
- Split the hardcoded base URL into host + per-endpoint versioned paths
  (attach stays on v1: POST /v1/authenticator).
- Surface the server's {errorCode, message} and add root-cause hints
  (404 route-moved vs 401/403 server-side gating) on HTTP errors.
- Handle requireHealup responses with a clear message instead of
  emitting invalid credentials.
2026-06-13 12:04:13 -03:00
Nighthawk e0ee0067f0 Update README.md 2026-06-12 17:54:33 -04:00
Nighthawk 9f1860a0a4 Revise README for non-maintained status and usage info
Updated README to reflect the current state of the tool as non-maintained and broken due to Blizzard's API changes. Added information on offline usage and legacy functions.
2026-06-12 17:53:50 -04:00
Nighthawk 9cd1dcbbdf Create bug report template for API changes
Added a bug report template for API endpoint updates with acknowledgment checkboxes.
2026-06-12 17:45:39 -04:00
Nighthawk fbd349d653 Add contact link for Blizzard Support in issue template 2026-06-12 17:45:13 -04:00
Nighthawk e13b27d2ac Delete .github directory 2026-06-12 17:44:36 -04:00
Nighthawk a6c065acc6 Create ISSUE_TEMPLATE.md for bug reports and help requests
Added a bug report/help request template with guidelines for users regarding API endpoint issues and account recovery.
2026-06-12 17:43:39 -04:00
Nighthawk 0199878312 Archive project and update README with deprecation notice
Updated README to indicate project is archived and deprecated due to changes in the Battle.net API.
2026-06-12 17:37:06 -04:00
Nighthawk fa02a8f4b7 Fix grammar in project status update
Corrected grammar in the README regarding project status.
2026-01-20 00:32:22 -05:00
Nighthawk 351c9e59b6 Fix grammar in README project status update
Corrected grammatical error in project status update.
2026-01-20 00:31:51 -05:00
Nighthawk 50c7a64c85 Revise README for project status and API changes
Updated the README to reflect the latest status of the project and changes to the Battle.net API.
2026-01-18 03:19:17 -05:00
Nighthawk cd8e6c315d Add donations section to README
Added a donations section with a Ko-fi button.
2025-12-22 18:19:01 -05:00
Nighthawk 9dc551c434 Update README.md 2025-08-31 01:26:23 -04:00
Nighthawk 2fdee4de71 Update bnet_auth_tool.py
This small update focuses on a significant refactoring of the codebase to improve maintainability, readability, and structure. 

The core functionality remains unchanged.

Key changes include:

- Documentation Removal: Docstrings and comments have been removed to reduce code clutter.

- Configuration Consolidation: All global constants (e.g., version info, API URLs, cryptographic parameters) are now centralized in a single AppConfig class for better organization and easier management.

- Streamlined Logic: Simplified the error handling for API requests and refined several helper functions for improved clarity and more idiomatic Python.

- Structural Enhancements: Minor improvements to the overall code structure for a cleaner and more direct implementation.
2025-08-11 00:24:50 -04:00
Nighthawk 0e4797d8ca Update bnet_auth_tool.py 2025-04-01 22:08:55 -04:00
Nighthawk 17a291c9bf Version 1.3.0
Version bump.

Rewritten for better clarity, improved encryption.
1.3.0
2025-04-01 21:55:11 -04:00
Nighthawk dd620fff08 Update requirements.txt 1.2 2025-01-23 19:15:23 -05:00
Nighthawk 6a010c68fb Update README.md 2025-01-23 19:13:09 -05:00
Nighthawk a3f9acaee1 Encryption Update
Added optional AES-256 encryption to the resulting JSON files. This is TOTP information and should be handled securely.
2025-01-23 19:11:00 -05:00
Nighthawk b4edf73b2b Update README.md 2025-01-21 23:40:54 -05:00
Nighthawk 0153a420ac Update bnet_auth_tool.py
Forgot `import os` like a dud.
1.1
2025-01-21 22:41:23 -05:00
Nighthawk 99203b9bd7 Update bnet_auth_tool.py
Title Update
2025-01-21 22:40:09 -05:00
Nighthawk f4427427a8 Code update.
Refactors some of the code, making it cleaner and more concise. 

Added an offline method of reconstructing TOTP keys and QR code provided the user has the required information.
2025-01-21 22:33:20 -05:00
Nighthawk 9f5bf24e19 Update README.md 2024-12-22 19:17:00 -05:00
Nighthawk 352c195e4d Update README.md 2024-11-29 19:47:17 -05:00
Nighthawk e2c70ecdad Update README.md 2024-11-29 19:46:07 -05:00
Nighthawk e9cfc2a207 Update README.md 2024-11-29 19:45:25 -05:00
Nighthawk 76a4becb30 Update README.md 2024-11-29 19:44:13 -05:00
Nighthawk 1aa4eae45d Create requirements.txt 2024-11-29 19:43:48 -05:00
Nighthawk 9f437e1110 Initial commit 1.0 2024-11-29 19:34:40 -05:00
Nighthawk 41bb96ca64 Update README.md 2024-11-29 19:33:47 -05:00
Nighthawk 27db552f46 Initial commit 2024-11-29 19:30:47 -05:00