mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
* Add read only and admin policies * Migrate to 2 system groups * Add system groups * Add system groups admin & read only * Dont' mutate parameters * Fix types
9 lines
236 B
Python
9 lines
236 B
Python
"""Constants for the auth module."""
|
|
from datetime import timedelta
|
|
|
|
ACCESS_TOKEN_EXPIRATION = timedelta(minutes=30)
|
|
MFA_SESSION_EXPIRATION = timedelta(minutes=5)
|
|
|
|
GROUP_ID_ADMIN = 'system-admin'
|
|
GROUP_ID_READ_ONLY = 'system-read-only'
|