1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Hass.io auth/sso part2 (#17324)

* Update discovery.py

* Create const.py

* Update auth.py

* Update const.py

* Update const.py

* Update http.py

* Update handler.py

* Update auth.py

* Update auth.py

* Update test_auth.py
This commit is contained in:
Pascal Vizeli
2018-10-11 10:55:38 +02:00
committed by Paulus Schoutsen
parent cffb704311
commit f5d3aa1826
6 changed files with 54 additions and 17 deletions

View File

@@ -14,16 +14,16 @@ from homeassistant.components.http import HomeAssistantView
from homeassistant.components.http.const import KEY_REAL_IP
from homeassistant.components.http.data_validator import RequestDataValidator
_LOGGER = logging.getLogger(__name__)
from .const import ATTR_USERNAME, ATTR_PASSWORD, ATTR_ADDON
ATTR_USERNAME = 'username'
ATTR_PASSWORD = 'password'
_LOGGER = logging.getLogger(__name__)
SCHEMA_API_AUTH = vol.Schema({
vol.Required(ATTR_USERNAME): cv.string,
vol.Required(ATTR_PASSWORD): cv.string,
})
vol.Required(ATTR_ADDON): cv.string,
}, extra=vol.ALLOW_EXTRA)
@callback