Skip to main content

Questra Authentication

Python OAuth2 Authentication Client für die Questra API mit Unterstützung für Service-Account- und interaktive Benutzer-Authentifizierung.

Features

  • Service Account & Interaktive Authentifizierung: Username/Password oder OAuth2 Device Code Flow
  • Automatisches Token-Management: Automatische Token-Refresh-Mechanismen
  • OIDC Discovery: Automatische Erkennung von OAuth2 Endpoints
  • Type-Safe: Vollständig typisierte API mit Dataclasses

Installation

pip install seven2one-questra-authentication

Requirements

  • Python >= 3.10
  • requests-oauthlib >= 2.0.0

Schnellstart

Service Account

from seven2one.questra.authentication import QuestraAuthentication

client = QuestraAuthentication(
    url="https://auth.example.com",
    username="ServiceUser",
    password="secret_password"
)

access_token = client.get_access_token()

Interaktiver Benutzer

client = QuestraAuthentication(
    url="https://auth.example.com",
    interactive=True
)

access_token = client.get_access_token()

Erweiterte Verwendung

# Mehrere Discovery-Pfade
client = QuestraAuthentication(
    url="https://auth.example.com",
    username="ServiceUser",
    password="secret",
    oidc_discovery_paths=["/app/o/techstack", "/app/o/questra"]
)

# Benutzerdefinierte Scopes
client = QuestraAuthentication(
    url="https://auth.example.com",
    username="ServiceUser",
    password="secret",
    scope="openid profile email"
)

Hinweis: Der Identity Provider kann einen enger gefassten Scope gewähren als angefordert (z. B. wird openid nicht immer zurückgegeben) — das wird akzeptiert, statt die Anmeldung abzubrechen.

Weitere Informationen

License

Proprietary - Seven2one Informationssysteme GmbH

Release files for seven2one-questra-authentication 2.2.0

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

Source distribution (sdist)

Source distribution for seven2one-questra-authentication 2.2.0
File Size Uploaded
seven2one_questra_authentication-2.2.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seven2one-questra-authentication 2.2.0
File Interpreter ABI Platform
seven2one_questra_authentication-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.0 kB

Release files / seven2one_questra_authentication-2.2.0.tar.gz

Download URL seven2one_questra_authentication-2.2.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9c9933d45527eaf6b769429db5a28fd8e2620407fe09735074cf235b4cc599b8
BLAKE2b-256 checksum
How to use checksums
6e1096c8899c44aeed315683c7dcd4ba3a00b1c56106cea1ea1d47744fa91c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / seven2one_questra_authentication-2.2.0-py3-none-any.whl

Download URL seven2one_questra_authentication-2.2.0-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49396fe14efe9e07806be606f4865fbbd8ead52a3ed20fee6fb87a8fb2007cf1
BLAKE2b-256 checksum
How to use checksums
966badb97f0ca05c6a8855485bb6202e7548c195209bac4bdf44abfa1640f6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","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