Skip to content

Pre-Release 0.4 - API Tokens

Pre-release
Pre-release

Choose a tag to compare

@agamsol agamsol released this 12 Feb 17:00
· 13 commits to master since this release

馃帀 What's New in 0.4 (Pre-release)

Token-Based Authentication & System Overhaul

Version 0.4 introduces a major overhaul to the authentication system, replacing traditional user accounts with a more robust API Token system.

Critical Changes

  • Database Migration: You MUST set MIGRATE_DATABASE=True in your environment variables to upgrade your database schema. The application will not start without this if a migration is pending. (only applies for database created with version 0.3 and lower)
  • User System: "Standard Users" have been replaced by API Tokens.

Features & Improvements

  • API Tokens: New endpoints to create, list, manage, and refresh API tokens with specific message limits.
  • Unified Auth: Support for both Authorization: Bearer <TOKEN> and X-API-Key: <TOKEN>.
  • Token Refresh: Ability to rotate a token's secret while keeping the same ID and history.
  • Expanded Access: API Tokens can now access /adb/list-devices.
  • Status Info: GET /auth/@me now returns detailed quota information.