Module auth

Module auth 

Source
Expand description

Authentication service — proxies CLI credential exchange to the configured CSM/OCHAMI backend.

The CLI never talks to Keycloak directly; it POSTs username+password to manta-server /api/v1/auth/token, which calls backend.get_api_token on the user’s behalf and returns the CSM bearer token. validate_api_token exposes a lightweight “is-this-token-still-valid” probe the CLI can call before sending a long-running request that would otherwise fail mid-flight.

Functions§

get_api_token
Exchange username + password for a CSM bearer token via the site’s configured backend.
validate_api_token
Verify that token is still accepted by the site’s backend.