File: const_5_api_auth.py

package info (click to toggle)
python-synologydsm-api 2.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,380 kB
  • sloc: python: 27,239; sh: 25; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""DSM 5 SYNO.API.Auth data."""

from tests.const import DEVICE_TOKEN, ERROR_AUTH_OTP_NOT_SPECIFIED, SESSION_ID

# No synotoken for an unknown reason
DSM_5_AUTH_LOGIN = {
    "data": {"is_portal_port": False, "sid": SESSION_ID},
    "success": True,
}
DSM_5_AUTH_LOGIN_2SA = ERROR_AUTH_OTP_NOT_SPECIFIED
DSM_5_AUTH_LOGIN_2SA_OTP = {
    "data": {"did": DEVICE_TOKEN, "is_portal_port": False, "sid": SESSION_ID},
    "success": True,
}