aistore.sdk.authn.response_handler
aistore.sdk.authn.response_handler
Module Contents
Classes
API
Bases: ResponseHandler
Handle responses from an AuthN server
exc_class
Parse raw text into an appropriate AuthNError object.
Parameters:
r
The response from the AuthN cluster.
Raises:
AuthNError: If the error doesn’t match any specific conditions.ErrClusterNotFound: If the error message indicates a missing cluster.ErrRoleNotFound: If the error message indicates a missing role.ErrUserNotFound: If the error message indicates a missing user.ErrRoleAlreadyExists: If the error message indicates a role already exists.ErrUserAlreadyExists: If the error message indicates a user already exists.ErrClusterAlreadyRegistered: If the error message indicates the cluster is already registered.ErrUserInvalidCredentials: If the error message indicates invalid user credentials.