Skip to main content

Authentication Client for Questra to use in all other Questra Client Libraries

Project description

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"
)

Weitere Informationen

License

Proprietary - Seven2one Informationssysteme GmbH

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

seven2one_questra_authentication-1.0.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file seven2one_questra_authentication-1.0.0.tar.gz.

File metadata

  • Download URL: seven2one_questra_authentication-1.0.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for seven2one_questra_authentication-1.0.0.tar.gz
Algorithm Hash digest
SHA256 157ee057843ebadfa1a4fa4848505371b807f331a4c4f0229d26d2e0972d5ca7
MD5 3e5abf2005461e4db5e5f653edba4c53
BLAKE2b-256 2ad6af2e9f1f27139ebe836705edd0cc6ec6c2a2affd3a5b8b288d5aa6d3b340

See more details on using hashes here.

File details

Details for the file seven2one_questra_authentication-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: seven2one_questra_authentication-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for seven2one_questra_authentication-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccee26135ffdf762ad9edb598431b3a84b5c08fc513c180d7ee8c055009d6448
MD5 0efb5011eb814ee439c3d4007ed70ee9
BLAKE2b-256 31b11e168b75f9171b5cf1d195bc0b9ff80edb40d77d456ad6e861d2cf2dc23f

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