Skip to main content

Python library for retrieving Keycloak access tokens interactively

Project description

Build status License Code coverage CodeQL PyPI

obi-auth

obi-auth is a library for retrieving Keycloak access tokens interactively. It helps developers and testers quickly authenticate against Keycloak without writing scripts or configuring complex clients.

[!CAUTION] obi-auth is designed to be used interactively and should not be used within a service or application.

Installation

Basic Installation

pip install obi-auth

Notebook Support

For enhanced Jupyter notebook support with Rich display integration:

pip install obi-auth[notebook]

This installs rich which provides better rendering in Jupyter notebooks.

Examples

from obi_auth import get_token

access_token = get_token(environment="staging")

License

Copyright (c) 2025 Open Brain Institute

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

obi_auth-1.0.1.tar.gz (24.0 kB view details)

Uploaded Source

File details

Details for the file obi_auth-1.0.1.tar.gz.

File metadata

  • Download URL: obi_auth-1.0.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for obi_auth-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e66ab7d547dcede2dc3bc4228e7034bcffe010ac879652f79d3f4271f3a9dbb8
MD5 f847592469422087132da264db7d92d7
BLAKE2b-256 e0d1d5355d0113ce008e242a618e3899c6cef591d4bab46ad57032f6a659bb0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for obi_auth-1.0.1.tar.gz:

Publisher: sdist.yml on openbraininstitute/obi-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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