Skip to main content

pyobs-auth

Shared Keycloak/OIDC authentication client for pyobs web services (pyobs-archive, pyobs-portal, and future services), so each one doesn't reimplement OIDC discovery, token validation, and user mapping on its own.

Single issuer only, by design: every service trusts exactly one Keycloak realm. Any upstream identity provider (an institute's SSO, a self-hosted observation-portal, ...) is meant to be brokered behind that Keycloak instance, not validated directly by this library - see docs/source/architecture.rst for the full reasoning.

Documentation

Full installation (adding this to a Django project), configuration (every PYOBS_AUTH key), architecture, and API reference: see docs/source/ (built with Sphinx — cd docs && uv run --group dev make html).

Development

git clone https://github.com/pyobs/pyobs-auth.git
cd pyobs-auth
uv sync --group dev
uv run pytest
uv run ruff check pyobs_auth/
uv run black --check .
uv run pyrefly check pyobs_auth

Metadata

Release files for pyobs-auth 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyobs-auth 2.1.2
File Size Uploaded
pyobs_auth-2.1.2.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyobs-auth 2.1.2
File Interpreter ABI Platform
pyobs_auth-2.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 kB

Release files / pyobs_auth-2.1.2.tar.gz

Download URL pyobs_auth-2.1.2.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
358dfd319d8d1b7a64414190894aa9df3e11db4b86bc189ab0fd577e4e6ef436
BLAKE2b-256 checksum
How to use checksums
ce7fecfa83eb3108bea4481d7911a7d06635b9932f0a0a7d10bec14f751cbf28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyobs_auth-2.1.2-py3-none-any.whl

Download URL pyobs_auth-2.1.2-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b323cdd297dec7a742761924757f6d402e01b57aacbbfb229fd8f772afdebf20
BLAKE2b-256 checksum
How to use checksums
6b3954465d524a27c08bc221f2fbd7198f67a6a5cab83989be09028e7b194626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page