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.0.tar.gz (24.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for obi_auth-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2dbed5437fb97c7be8f8547632feba36fde0d42539948358dd47e9242e3df829
MD5 7fedd7d8e699ca5402fc6e47000e495c
BLAKE2b-256 ff4517159e8a481e72252665b5ae687233474859a51cd98646d0881d9eabcf01

See more details on using hashes here.

Provenance

The following attestation bundles were made for obi_auth-1.0.0.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