HomeJavaModsDownAuth

DownAuth

Fallback authentication for Velocity proxy with strong, configurable security controls when Mojang auth is unavailable.

Overview

Key Features

Commands

Permissions

Configuration (excerpt)

session-cache:
  max-session-age: 72
  storage-type: "JSON"
  strict-ip-check: true
  allow-ip-range-match: true
  ipv4-range-prefix: 24
  ipv6-range-prefix: 64
  cleanup-on-startup: true

security:
  min-login-history: 3
  max-failed-attempts: 10
  failure-ban-duration: 30
  require-recent-activity: true
  recent-activity-days: 30
  alert-on-fallback: true
  enable-geo-checks: true
  alert-on-geo-change: true
  deny-on-geo-change: false
  require-pin-on-fallback: false
  pin-timeout-seconds: 60
  pin-min-length: 6
  max-failed-attempts-per-subnet: 30
  max-failed-attempts-per-asn: 100
  blocked-asns: []
  require-mojang-auth: []  # UUIDs that must always authenticate online

monitoring:
  health-check-interval: 30
  failure-threshold: 3
  enable-statistics: true
  enable-metrics: true
  enable-audit-log: true
  geo-lookup-timeout: 2000
  geo-provider-url: "https://ipwho.is/{ip}?fields=ip,country_code,connection"
  geo-cache-ttl: 300

messages:
  fallback-auth-active: "&eAuthentication servers are down. Using cached session."
  fallback-auth-failed: "&cCannot authenticate: No cached session found."
  session-expired: "&cYour session has expired. Please try again when auth servers are online."
  mojang-down-notice: "&7Mojang authentication servers appear to be down."
  pin-prompt: "&ePlease verify your identity: use &6/pin <code>&e within &6%timeout%s"
  pin-success: "&aVerification successful."
  pin-failure: "&cIncorrect PIN."
  pin-required-notice: "&ePins are required during auth outages. Set your PIN with &6/setpin <code>&e."
  geo-denied: "&cConnection denied due to location or network change. Please try again later."

Security messages and when they appear

How it works (high level)

  1. PreLogin: If Mojang auth appears down, the connection is switched to offline-mode and validated against the cached session with IP/rate/geo/ASN checks.
  2. GameProfileRequest: Supplies a profile built from the cached session (UUID, name, properties).
  3. PostLogin: Updates the session, re-checks geo/ASN, alerts staff if needed, and optionally enforces PIN verification.

Geo provider

Notes

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more