Skip to main content
Control which devices and IP addresses can authenticate with your application.

Response signature model (Ed25519)

AuthForge signs /auth/validate and /auth/heartbeat success responses with a per-app Ed25519 private key.
  • SDKs verify signature against the exact base64 payload string using your app’s publicKey.
  • appSecret authenticates validate requests, but is not used for response signature verification.
  • Response shape includes keyId so clients can identify which signing key version produced the signature.

Success response shape

This prevents network-level payload forgery without access to your app’s private signing key.

Tamper self-ban endpoint (public auth)

When your app detects tampering (anti-debug, runtime integrity checks, patch detection), you can call:
Trigger a self-ban request against the public auth host (https://auth.authforge.cc).

Request modes

/auth/selfban supports two request styles:
  1. Pre-session: appId, appSecret, licenseKey, hwid, nonce
  2. Post-session: appId, sessionToken, hwid
Common optional flags:

Critical safety rule

Pre-session requests cannot revoke by key. If a pre-session request sets revokeLicense: true, the API returns revoke_requires_session.
This prevents accidentally revoking arbitrary or attacker-supplied keys before the key is proven by a valid authenticated session.

Example (pre-session, blacklist only)

Example (post-session, full lockout)


Get security config

Retrieve the current blacklist and whitelist configuration for an application.

Path parameters

Example

Response (200)

Empty arrays indicate no entries for that list. An empty whitelist means whitelist mode is not active (all values are allowed).

Update security config

Replace the security configuration. Only included fields are updated; omitted lists remain unchanged.

Request body

Example

Response (200)

Errors

Clearing a list

Set the list to an empty array:

Add to blacklist

Add a single HWID or IP to the blacklist.

Request body

Example

Response (200)


Remove from blacklist

Remove a single HWID or IP from the blacklist.

Request body

Example

Response (200)


Add to whitelist

Add a single HWID or IP to the whitelist. Enabling a whitelist restricts authentication to only listed entries.

Request body

Example

Response (200)

Adding an entry to a whitelist activates allowlist mode for that type. All non-listed HWIDs or IPs will be blocked.

Remove from whitelist

Remove a single HWID or IP from the whitelist. If the whitelist becomes empty, allowlist mode is deactivated.

Request body

Example

Response (200)


Limits

Evaluation order

During authentication, lists are checked in this order:
  1. IP blacklist (reject if matched)
  2. IP whitelist (reject if list is non-empty and IP not listed)
  3. HWID blacklist (reject if matched)
  4. HWID whitelist (reject if list is non-empty and HWID not listed)
Blacklist always takes precedence. An entry present on both blacklist and whitelist is blocked.