Authentication flow mapping for the Klyrek ecosystem
Project description
klyrek-auth
Authentication flow mapping. Three independent pieces:
forms— classifies discovered form endpoints (typicallyklyrek-crawler'ssource="crawler-form"entries) aslogin,register,password-reset, orlogoutbased on the endpoint's URL and field names — no extra requests needed.session— inspects a response's cookies,Authorizationheader, and redirect chain (includingresponse.history, sinceklyrek-httpfollows 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 a401/403response 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0697976f6def206eefbde1920aa5cdc2b26b8fc844cbaffaa40d30ea6fafe3a
|
|
| MD5 |
d11f2792b0bd0690620efe678e3d9a6a
|
|
| BLAKE2b-256 |
4f611816009cc110e54bfa1912bb419d678d629b382bd8a8eae83c2ff871f54a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
180370c94a601b7fad2d85fcbfa1b977450311f3d645317a8d40ed94db80f161
|
|
| MD5 |
f31f972082e7be9659dd73d4e32381c7
|
|
| BLAKE2b-256 |
7d58e39f10b5e4c83cae9ec424be383ff6569081cb2dd9273571eb0dbb4864e5
|