Auth Functions

class ai.backend.client.auth.Auth[소스]

Provides the function interface for login session management and authorization.

classmethod await login(user_id, password)[소스]

Log-in into the endpoint with the given user ID and password. It creates a server-side web session and return a dictionary with "authenticated" boolean field and JSON-encoded raw cookie data.

반환 형식

dict

classmethod await logout()[소스]

Log-out from the endpoint. It clears the server-side web session.

반환 형식

None

classmethod await update_password(old_password, new_password, new_password2)[소스]

Update user's password. This API works only for account owner.

반환 형식

dict