AuthResource¶
AuthResource
¶
Session-based authentication for PiKVM.
Source code in src/aiopikvm/resources/auth.py
login(user, passwd, totp=None)
async
¶
Log in with credentials.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
user
|
str
|
Username. |
required |
passwd
|
str
|
Password. |
required |
totp
|
str | None
|
Optional TOTP code (concatenated to password). |
None
|
Returns:
| Type | Description |
|---|---|
Any
|
The login result from the API. |
Source code in src/aiopikvm/resources/auth.py
check()
async
¶
Check authentication status.
Returns:
| Type | Description |
|---|---|
Any
|
The auth check result from the API. |
logout()
async
¶
Log out of the current session.
Returns:
| Type | Description |
|---|---|
Any
|
The logout result from the API. |