Python library for retrieving Keycloak access tokens interactively
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dbed5437fb97c7be8f8547632feba36fde0d42539948358dd47e9242e3df829
|
|
| MD5 |
7fedd7d8e699ca5402fc6e47000e495c
|
|
| BLAKE2b-256 |
ff4517159e8a481e72252665b5ae687233474859a51cd98646d0881d9eabcf01
|
Provenance
The following attestation bundles were made for obi_auth-1.0.0.tar.gz:
Publisher:
sdist.yml on openbraininstitute/obi-auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
obi_auth-1.0.0.tar.gz -
Subject digest:
2dbed5437fb97c7be8f8547632feba36fde0d42539948358dd47e9242e3df829 - Sigstore transparency entry: 816550067
- Sigstore integration time:
-
Permalink:
openbraininstitute/obi-auth@db1372c8a22cda19bb62e5e4eea5bbb20dddab8e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/openbraininstitute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdist.yml@db1372c8a22cda19bb62e5e4eea5bbb20dddab8e -
Trigger Event:
release
-
Statement type: