Python client for Endevre ID authentication flows
Project description
Endevre ID Python Client
A Python helper library for interacting with Endevre ID authentication services. It mirrors the core workflows of the browser client with a server-friendly API.
Features
- Build secure login URLs for Endevre ID SSO flows.
- Exchange authorization codes for tokens (optionally requesting JWTs).
- Refresh access tokens using stored refresh tokens.
- Retrieve user information from tokens or the Endevre ID API.
- Optional JWT validation backed by the public signing key.
Installation
pip install endevre-id-client
Quick start
from endevre_id_client import EndevreClient
client = EndevreClient(
client_id="<your client id>",
client_secret="<your client secret>",
)
login_url = client.getLoginUrl(
final_redirect_uri="https://app.example.com/auth/callback",
redirect_uris=["https://app.example.com/start"],
)
# After your user completes the flow and you receive the `code`
exchange_result = client.exchange(code)
user_info = client.getUserInfo(exchange_result.token)
refreshed = client.refreshToken(exchange_result.refresh)
Publishing
Automated publishing mirrors the JavaScript package strategy:
- Pushes to
mainpublish the version defined inpyproject.tomlas the stable release. - Pushes to
betapublish a time-stamped beta pre-release (e.g.0.1.0b20241006123000). - Pushes to
devpublish a time-stamped development build (e.g.0.1.0.dev20241006123000). - Pushes to
justin*/ray*branches run tests only (no publish).
All workflows live under .github/workflows/python-ci-cd.yml and rely on the PYPI_API_TOKEN secret (or PyPI Trusted Publisher configuration) for auth.
Development
Install dev dependencies:
pip install -e .[dev]
Run the test suite:
pytest
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file endevre_id_client-0.1.0.tar.gz.
File metadata
- Download URL: endevre_id_client-0.1.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5945ac205c75117e558b459ce06afd54c8da9f25295e867eddeae37d502b5736
|
|
| MD5 |
97a6008637abe8571b9919f53d1ab79b
|
|
| BLAKE2b-256 |
65f08f1c51b618c8aef1969b7c9e1073a741057cb487e895f9cf4b77ae5a1c48
|
Provenance
The following attestation bundles were made for endevre_id_client-0.1.0.tar.gz:
Publisher:
python-ci-cd.yml on endevre/endevre-id-client-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
endevre_id_client-0.1.0.tar.gz -
Subject digest:
5945ac205c75117e558b459ce06afd54c8da9f25295e867eddeae37d502b5736 - Sigstore transparency entry: 601372571
- Sigstore integration time:
-
Permalink:
endevre/endevre-id-client-python@4ae13626f279a580029689fb9506ad5e163594e6 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/endevre
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-ci-cd.yml@4ae13626f279a580029689fb9506ad5e163594e6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file endevre_id_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: endevre_id_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7f016f5ec0361b41a0bb2e177dbac6eabed44169569a309cf1cd8a0d335009c
|
|
| MD5 |
d91e29a7fbbf484b206930bc0f01e25e
|
|
| BLAKE2b-256 |
5c675eff901b504349f5c29b05fbcaa3bd338f6365823fa0e359c884485f716e
|
Provenance
The following attestation bundles were made for endevre_id_client-0.1.0-py3-none-any.whl:
Publisher:
python-ci-cd.yml on endevre/endevre-id-client-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
endevre_id_client-0.1.0-py3-none-any.whl -
Subject digest:
d7f016f5ec0361b41a0bb2e177dbac6eabed44169569a309cf1cd8a0d335009c - Sigstore transparency entry: 601372572
- Sigstore integration time:
-
Permalink:
endevre/endevre-id-client-python@4ae13626f279a580029689fb9506ad5e163594e6 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/endevre
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-ci-cd.yml@4ae13626f279a580029689fb9506ad5e163594e6 -
Trigger Event:
push
-
Statement type: