The ISPyB Target Access Authenticator Client
Project description
fragalysis-target-access-authenticator-python-client
A simple Python 3 client to simplify access to the authenticator, providing the following functions: -
def get_auth_target_access(username: str) -> set[str]:
[...]
def get_auth_version() -> TasAuthVersionGetResponse:
[...]
def get_auth_ping() -> TasAuthPingGetResponse:
[...]
The module requires two items, extracted from the environment: -
TA_AUTH_SERVICE- The service hostname. In cluster this might behttp://auth.ta-authenticator.svc(an internal connection that is expected to comply with http:// protocol)TA_AUTH_QUERY_KEY- A 'secret' key the service expects in request headers.
Usage
After installing from PyPI, access the ta_auth_connector functions directly
via the connector module: -
import ta_auth_connector
ping_response: TasAuthPingGetResponse = ta_auth_connector.get_auth_ping()
The authenticator service
See: -
- https://github.com/xchem/fragalysis-ispyb-target-access-authenticator
- https://github.com/xchem/fragalysis-mock-target-access-authenticator
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 xchem_ta_auth_client-1.0.0.tar.gz.
File metadata
- Download URL: xchem_ta_auth_client-1.0.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b5b20a00ef4d4ba2e1ad183ee01eaa989f44b36f1387501b3f1ac531595e26d
|
|
| MD5 |
6fbfb604b75517d48a880eaec8c30a87
|
|
| BLAKE2b-256 |
4d3b042eed7ff68fb1598da0d3f7241349b17a28fe3eb3a4fde9680acd9d1f10
|
Provenance
The following attestation bundles were made for xchem_ta_auth_client-1.0.0.tar.gz:
Publisher:
release.yaml on xchem/fragalysis-target-access-authenticator-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xchem_ta_auth_client-1.0.0.tar.gz -
Subject digest:
5b5b20a00ef4d4ba2e1ad183ee01eaa989f44b36f1387501b3f1ac531595e26d - Sigstore transparency entry: 1203462790
- Sigstore integration time:
-
Permalink:
xchem/fragalysis-target-access-authenticator-python-client@0083b7de692056801cd593db568b4cb5cc19dbd8 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/xchem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@0083b7de692056801cd593db568b4cb5cc19dbd8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file xchem_ta_auth_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: xchem_ta_auth_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 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 |
5f589274dc2ba5aa64a3496797c8ce29425ed7b6b69c40f40f3b2ebf5b4a3a9c
|
|
| MD5 |
3c6a1db22d819b542bc73a4c16e69046
|
|
| BLAKE2b-256 |
6cbb9484f2a0c96fd7efdbebad34784f8f2c1746f076e7efe1fade05ee2037f5
|
Provenance
The following attestation bundles were made for xchem_ta_auth_client-1.0.0-py3-none-any.whl:
Publisher:
release.yaml on xchem/fragalysis-target-access-authenticator-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xchem_ta_auth_client-1.0.0-py3-none-any.whl -
Subject digest:
5f589274dc2ba5aa64a3496797c8ce29425ed7b6b69c40f40f3b2ebf5b4a3a9c - Sigstore transparency entry: 1203462791
- Sigstore integration time:
-
Permalink:
xchem/fragalysis-target-access-authenticator-python-client@0083b7de692056801cd593db568b4cb5cc19dbd8 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/xchem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@0083b7de692056801cd593db568b4cb5cc19dbd8 -
Trigger Event:
release
-
Statement type: