Skip to main content

Authentication flow mapping for the Klyrek ecosystem

Project description

klyrek-auth

Authentication flow mapping. Three independent pieces:

  • forms — classifies discovered form endpoints (typically klyrek-crawler's source="crawler-form" entries) as login, register, password-reset, or logout based on the endpoint's URL and field names — no extra requests needed.
  • session — inspects a response's cookies, Authorization header, and redirect chain (including response.history, since klyrek-http follows redirects) to identify session mechanisms: known session-cookie names, JWTs (validated by decoding the header segment, not just counting dots), and OAuth redirects to known providers.
  • gating — probes a list of URLs and tags each as auth-gated (Endpoint.requires_auth) based on a 401/403 response or a redirect that lands on a login-shaped path.
from klyrek_auth.forms import find_auth_forms
from klyrek_auth.gating import probe_auth_gating
from klyrek_auth.session import detect_session_mechanisms

auth_forms = find_auth_forms(crawl_result.endpoints)
mechanisms = detect_session_mechanisms(client.get("https://target.com/"))
gated = probe_auth_gating(client, ["https://target.com/account", "https://target.com/about"])

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

klyrek_auth-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

klyrek_auth-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: klyrek_auth-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for klyrek_auth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b0697976f6def206eefbde1920aa5cdc2b26b8fc844cbaffaa40d30ea6fafe3a
MD5 d11f2792b0bd0690620efe678e3d9a6a
BLAKE2b-256 4f611816009cc110e54bfa1912bb419d678d629b382bd8a8eae83c2ff871f54a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: klyrek_auth-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for klyrek_auth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 180370c94a601b7fad2d85fcbfa1b977450311f3d645317a8d40ed94db80f161
MD5 f31f972082e7be9659dd73d4e32381c7
BLAKE2b-256 7d58e39f10b5e4c83cae9ec424be383ff6569081cb2dd9273571eb0dbb4864e5

See more details on using hashes here.

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