Skip to main content

The ISPyB Target Access Authenticator Client

Project description

fragalysis-target-access-authenticator-python-client

PyPI - Version

release

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 be http://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: -


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

xchem_ta_auth_client-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xchem_ta_auth_client-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for xchem_ta_auth_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5b5b20a00ef4d4ba2e1ad183ee01eaa989f44b36f1387501b3f1ac531595e26d
MD5 6fbfb604b75517d48a880eaec8c30a87
BLAKE2b-256 4d3b042eed7ff68fb1598da0d3f7241349b17a28fe3eb3a4fde9680acd9d1f10

See more details on using hashes here.

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

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

File details

Details for the file xchem_ta_auth_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xchem_ta_auth_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f589274dc2ba5aa64a3496797c8ce29425ed7b6b69c40f40f3b2ebf5b4a3a9c
MD5 3c6a1db22d819b542bc73a4c16e69046
BLAKE2b-256 6cbb9484f2a0c96fd7efdbebad34784f8f2c1746f076e7efe1fade05ee2037f5

See more details on using hashes here.

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

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