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 mirrors the CLI’s pre-Phase-6 token-still-valid check.

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.