Skip to content

online-auth

Secure online authentication client for Kodachi OS

Version: 9.0.1 | Size: 7.7MB | Author: Warith Al Maawali

License: Proprietary | Website: https://digi77.com


File Information

Property Value
Binary Name online-auth
Version 9.0.1
Build Date 2025-09-23T19:20:03.458488875Z
Rust Version 1.82.0
File Size 7.7MB
JSON Data View Raw JSON

SHA256 Checksum

357dcce4548ecbee12895e64f6c55120ad55b334770daa390ce52a9b8a9e7740

Features

Feature Description
Feature Secure authentication with certificate pinning
Feature Session management with automatic heartbeat
Feature API key synchronization
Feature User group and status checking
Feature Comprehensive logging and error handling
Feature Multi-language architecture integration
Feature TLS 1.3 encrypted communications
Feature Real-time status monitoring
Feature Automatic retry mechanisms

Security Features

Feature Description
Authentication Secure authentication with certificate pinning
Encryption TLS 1.3 for all network communications
Inputvalidation All inputs are validated and sanitized
Ratelimiting Built-in rate limiting for network operations

System Requirements

Requirement Value
OS Linux (Debian-based)
Privileges root/sudo for system operations
Dependencies OpenSSL, libcurl

Global Options

Flag Description
-h, --help Print help information
-v, --version Print version information
-n, --info Display detailed information
-e, --examples Show usage examples
--json Output in JSON format
--json-pretty Pretty-print JSON output with indentation
--json-human Enhanced JSON output with improved formatting (like jq)
--verbose Enable verbose output
--quiet Suppress non-essential output
--no-color Disable colored output
--config <FILE> Use custom configuration file
--timeout <SECS> Set timeout (default: 30)
--retry <COUNT> Retry attempts (default: 3)

Commands

API Management

sync-api-key

Manually sync API key with server

Usage:

online-auth sync-api-key [OPTIONS]

Examples:

online-auth sync-api-key
online-auth sync-api-key --json

Authentication

authenticate

Authenticate with the server

Usage:

online-auth authenticate [OPTIONS]

Examples:

online-auth authenticate
online-auth authenticate --json
online-auth authenticate --keep-alive
online-auth authenticate --keep-alive --json

check-login

Check if currently logged in

Usage:

online-auth check-login [OPTIONS]

Examples:

online-auth check-login
online-auth check-login --json

logout

End the current session

Usage:

online-auth logout [OPTIONS]

Examples:

online-auth logout
online-auth logout --json

check-if-blocked

Check if user ID is blocked

Usage:

online-auth check-if-blocked [OPTIONS]

Examples:

online-auth check-if-blocked
online-auth check-if-blocked --json

get-ids

Show user and session IDs

Usage:

online-auth get-ids [OPTIONS]

Examples:

online-auth get-ids
online-auth get-ids --json

check-all-status

Show all status information at once

Usage:

online-auth check-all-status [OPTIONS]

Examples:

online-auth check-all-status
online-auth check-all-status --json

Heartbeat

send-heartbeat

Send a single heartbeat

Usage:

online-auth send-heartbeat [OPTIONS]

Examples:

online-auth send-heartbeat
online-auth send-heartbeat --json

send-heartbeat-with-retry

Send heartbeat with retry

Usage:

online-auth send-heartbeat-with-retry [OPTIONS]

Examples:

online-auth send-heartbeat-with-retry
online-auth send-heartbeat-with-retry --json

start-heartbeat

Start automatic heartbeat service

Usage:

online-auth start-heartbeat [OPTIONS]

Examples:

online-auth start-heartbeat
online-auth start-heartbeat --json

stop-heartbeat

Stop automatic heartbeat service

Usage:

online-auth stop-heartbeat [OPTIONS]

Examples:

online-auth stop-heartbeat
online-auth stop-heartbeat --json

check-heartbeat

Check if heartbeat service is running

Usage:

online-auth check-heartbeat [OPTIONS]

Examples:

online-auth check-heartbeat
online-auth check-heartbeat --json

Information

get-card

Get user card URL

Usage:

online-auth get-card [OPTIONS]

Examples:

online-auth get-card
online-auth get-card --json

which-group

Check which user group you belong to (VIP = premium)

Usage:

online-auth which-group [OPTIONS]

Examples:

online-auth which-group
online-auth which-group --json

Permission Guard

enable-permission-guard

Enable permission guard daemon to monitor and fix file permissions

Usage:

online-auth enable-permission-guard [OPTIONS]

Examples:

online-auth enable-permission-guard
online-auth enable-permission-guard --json

disable-permission-guard

Disable permission guard daemon

Usage:

online-auth disable-permission-guard [OPTIONS]

Examples:

online-auth disable-permission-guard
online-auth disable-permission-guard --json

permission-guard-status

Check permission guard daemon status

Usage:

online-auth permission-guard-status [OPTIONS]

Examples:

online-auth permission-guard-status
online-auth permission-guard-status --json

Examples

Authentication Management

Basic authentication operations

Authenticate with the server

sudo online-auth authenticate
Expected Output: Authentication successful

Authenticate with JSON output

sudo online-auth authenticate --json
Expected Output: JSON response with authentication status

Authenticate and enable auto-heartbeat

sudo online-auth authenticate --keep-alive
Expected Output: Authentication successful with heartbeat enabled

Check if currently logged in

sudo online-auth check-login
Expected Output: Login status displayed

End the current session

sudo online-auth logout
Expected Output: Successfully logged out

Check if user ID is blocked

sudo online-auth check-if-blocked
Expected Output: Block status displayed

Show all status information

sudo online-auth check-all-status
Expected Output: Complete status information displayed

User Information

Identity and account information

Show user and session IDs

sudo online-auth get-ids
Expected Output: User ID and session ID displayed

Get IDs in JSON format

sudo online-auth get-ids --json
Expected Output: JSON with user and session IDs

Check user group (VIP = premium)

sudo online-auth which-group
Expected Output: User group displayed

Get user card URL

sudo online-auth get-card
Expected Output: User card URL displayed

Heartbeat Management

Session keepalive and heartbeat operations

Send a single heartbeat

sudo online-auth send-heartbeat
Expected Output: Heartbeat sent successfully

Send heartbeat with retry logic

sudo online-auth send-heartbeat-with-retry
Expected Output: Heartbeat sent with retry if needed

Start automatic heartbeat service

sudo online-auth start-heartbeat
Expected Output: Heartbeat service started

Stop automatic heartbeat service

sudo online-auth stop-heartbeat
Expected Output: Heartbeat service stopped

Check if heartbeat service is running

sudo online-auth check-heartbeat
Expected Output: Heartbeat service status displayed

Permission Guard Management

Control permission guard daemon for file permission monitoring

Start permission guard daemon to monitor file permissions

sudo online-auth enable-permission-guard
Expected Output: Permission guard daemon enabled successfully

Note

Ensures files maintain correct ownership and prevents root-owned files in user directories

Stop permission guard daemon

sudo online-auth disable-permission-guard
Expected Output: Permission guard daemon disabled successfully

Note

Stops automatic permission monitoring and correction

Check if permission guard daemon is running

sudo online-auth permission-guard-status
Expected Output: Permission guard daemon is running/not running

Enable permission guard with JSON output

sudo online-auth enable-permission-guard --json
Expected Output: {"status": "success", "message": "Permission guard daemon enabled", "is_running": true}

Note

Useful for automation scripts and monitoring

Get permission guard status in JSON format

sudo online-auth permission-guard-status --json
Expected Output: {"status": "success", "message": "Permission guard daemon is running", "is_running": true}

API Management

API key synchronization and management

Manually sync API key with server

sudo online-auth sync-api-key
Expected Output: API key synchronized successfully

Sync API key with JSON output

sudo online-auth sync-api-key --json
Expected Output: JSON response with sync status

Program Information

Version and program details

Show version number

online-auth --version
Expected Output: online-auth version 9.0.1

Show detailed program information

online-auth --info
Expected Output: Detailed information about online-auth

Show help information

online-auth --help
Expected Output: Help text with all commands

Show usage examples

online-auth --examples
Expected Output: This examples output

Workflow Combinations

Complete authentication workflows

Authenticate and check group

sudo online-auth authenticate && sudo online-auth which-group
Expected Output: Authentication followed by group info

Note

Useful for setup scripts

Auth with heartbeat and get card

sudo online-auth authenticate --keep-alive && sudo online-auth get-card
Expected Output: Authentication with heartbeat, then card URL

Check login or authenticate if needed

sudo online-auth check-login || sudo online-auth authenticate
Expected Output: Login status or authentication

Note

Ensures authenticated state

Troubleshooting

Debug and error resolution

Check connection status

sudo online-auth check-login --json
Expected Output: JSON with detailed connection info

Refresh API credentials

sudo online-auth sync-api-key
Expected Output: API key refreshed

Note

Use when authentication fails

Reset authentication

sudo online-auth logout && sudo online-auth authenticate
Expected Output: Fresh authentication session

Restart heartbeat service

sudo online-auth stop-heartbeat && sudo online-auth start-heartbeat
Expected Output: Heartbeat service restarted

Advanced Options

Global configuration options (provided by cli-core)

Set 30 second timeout

sudo online-auth authenticate --timeout 30
Expected Output: Authentication with custom timeout

Note

Global option - applies to network operations

Use custom port

sudo online-auth authenticate --port 8080
Expected Output: Note: Port configuration may not apply to all operations

Note

Global option - for services that support custom ports

Enable debug logging

sudo online-auth authenticate --log-level debug
Expected Output: Authentication with debug output

Note

Global option - useful for diagnosing issues

JSON Output

Working with JSON formatted responses

Extract status from JSON

sudo online-auth authenticate --json | jq '.status'
Expected Output: "success" or "error"

Extract user ID from JSON

sudo online-auth get-ids --json | jq '.data.userId'
Expected Output: User ID value

Get all status data as JSON

sudo online-auth check-all-status --json | jq '.data'
Expected Output: Complete status object

Note

Useful for monitoring scripts

Environment Variables

Variable Description Default Values
RUST_LOG Set logging level info error
NO_COLOR Disable all colored output when set unset 1

Exit Codes

Code Description
0 Success
1 General error
2 Invalid arguments
3 Permission denied
4 Network error
5 File not found

Back to top