mantik.authentication.api

Attributes

REFRESH_TOKEN_EXPIRED_ERROR_MESSAGE

REFRESH_TOKEN_INVALID_ERROR_MESSAGE

logger

Functions

create_tokens(→ mantik.authentication.tokens.Tokens)

refresh_tokens(→ mantik.authentication.tokens.Tokens)

Refresh the tokens.

Module Contents

mantik.authentication.api.REFRESH_TOKEN_EXPIRED_ERROR_MESSAGE = 'Refresh token has expired'[source]
mantik.authentication.api.REFRESH_TOKEN_INVALID_ERROR_MESSAGE = 'Refresh token is invalid'[source]
mantik.authentication.api.create_tokens(credentials: mantik.utils.mantik_api.credentials.Credentials | None = None) mantik.authentication.tokens.Tokens[source]
mantik.authentication.api.logger[source]
mantik.authentication.api.refresh_tokens(tokens: mantik.authentication.tokens.Tokens, credentials: mantik.utils.mantik_api.credentials.Credentials | None = None) mantik.authentication.tokens.Tokens[source]

Refresh the tokens.

Raises:

RuntimeError – If MLflow tracking URI environment variable is not set.

Notes

Refreshing a password requires to send the refresh token instead of the user’s password.