Skip to main content

Local auth-code challenge plugin for uv-agent.

Project description

uv-agent auth code plugin

This plugin starts a small token-protected HTTP page that shows a single six-character challenge code. Other uv-agent plugins can call the auth_code.verify action with a user-provided code.

The code is uppercase alphanumeric, case-insensitive when verified, short lived, and consumed after one successful verification.

Configuration

{
  "plugins": {
    "auth-code": {
      "enabled": true,
      "config": {
        "token": "replace-with-a-long-random-token",
        "host": "0.0.0.0",
        "port": 8765,
        "ttl_s": 120
      }
    }
  }
}

token is required. The page can be opened as:

http://127.0.0.1:8765/?token=replace-with-a-long-random-token

After token login, the plugin stores an in-memory HttpOnly session cookie.

Action

result = await context.actions.call("auth_code.verify", {"code": "A7K2Q9"})

The plugin id is auth-code. The action id remains auth_code.verify because uv-agent action ids use dotted Python-style names.

Successful verification returns:

{"ok": true, "verified": true}

Failed verification returns ok: false, verified: false, and a reason.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uv_agent_auth_code-0.1.0.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uv_agent_auth_code-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file uv_agent_auth_code-0.1.0.tar.gz.

File metadata

  • Download URL: uv_agent_auth_code-0.1.0.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for uv_agent_auth_code-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0bcdac92c683562f04d57edeebb573a461dcfe187853fcb8fc13783bafbb7d20
MD5 0ed04c3dabb36269346c2f1acf63de70
BLAKE2b-256 7c777761403d8bfbb5fce00457f5f98397b2183d75d3f0cdcaaaa91f34a2e7b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_agent_auth_code-0.1.0.tar.gz:

Publisher: release.yml on uv-agent/auth-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uv_agent_auth_code-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uv_agent_auth_code-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5b711ef6ed98ea1e2e7e2e6a072d2d75ecb9c56968a396008e56ecb796bba3
MD5 7be6432ed69a60b073af1de58dadae7d
BLAKE2b-256 ec0e06f69a034fb559bd5a662c85270654434a45fca3c6a0d33be8fbcea81d8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_agent_auth_code-0.1.0-py3-none-any.whl:

Publisher: release.yml on uv-agent/auth-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page