xyberos-auth
Auth plugin — RFC-0019, M9. OAuth 2.0, OpenID Connect, and JWT, with
Auth0 / Okta / Microsoft Entra presets. All stdlib (urllib + hmac); RS256
uses lazy cryptography.
Install
pip install xyberos-auth # from PyPI
# development (editable, from this repo):
pip install -e ./auth
JWT
from xyberos_auth import JwtCodec
codec = JwtCodec("a-shared-secret")
token = codec.encode({"sub": "user-1"}, ttl=3600)
codec.decode(token, verify=True) # raises AuthError on tamper/expiry
Or through the plugin (HS256 via AUTH_JWT_SECRET):
from xyberos import create_app
from xyberos_auth import AuthPlugin
app = create_app()
app.load_plugin(AuthPlugin(secret="dev-secret"))
app.tools.execute("jwt_sign", None, payload={"sub": "user-1"}, ttl=600)
app.tools.execute("jwt_verify", None, token=token)
OAuth2 / OIDC
from xyberos_auth import OAuth2Client, build_oidc
oauth2 = OAuth2Client("cid", "csecret",
authorize_url="https://idp/authorize",
token_url="https://idp/token", scope="openid profile")
url = oauth2.authorization_url(state="abc")
tokens = oauth2.exchange_code("code")
oidc = build_oidc("auth0", client_id="cid", client_secret="csecret", tenant="myco")
user = oidc.userinfo(tokens["access_token"])
claims = oidc.verify_id_token(tokens.get("id_token", ""))
Presets: auth0 ({tenant}), okta ({org}), entra ({tenant}).
Tests
pip install pytest
pytest tests/
Transport-injectable (OAuth2/OIDC) + real HMAC/RSA JWT tests (skip RS256 when
cryptography is absent).
Ship location
Plugin (xyberos.plugins entry point) — enterprise auth (M9).
Metadata
Release files for xyberos-auth 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xyberos_auth-0.1.1.tar.gz | 10.6 kB | With provenance | Details for xyberos_auth-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xyberos_auth-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for xyberos_auth-0.1.1-py3-none-any.whl |
Total release size: 21.2 kB
Release files / xyberos_auth-0.1.1.tar.gz
| Download URL | xyberos_auth-0.1.1.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c831b99b41078fd33b6a08b162a935919b1a7ba37a3cdb44b3fba41f5d86ada
|
|
BLAKE2b-256 checksum How to use checksums |
74657b6161b81f7a0c405ef173f090342cc09d70b04353049caaa84f31157dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / xyberos_auth-0.1.1-py3-none-any.whl
| Download URL | xyberos_auth-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac4b9395b89e868c2eb7c3a4fb9d57e17a1e05e0b32dce91ae4f52739cce951c
|
|
BLAKE2b-256 checksum How to use checksums |
43effc4b332c9cdd7f29f8674798fae64cf4715c84c3c809020959059c87a91a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logSecurity for xyberos-auth 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for xyberos_auth-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.