core/homeassistant/auth
Robert Schindler 06f3e8137a Added command_line auth provider that validates credentials by calling a command (#19985)
* Added external auth provider that calls a configurable program

Closes #19975

* Raise proper InvalidAuth exception on OSError during program execution

* Changed name of external auth provider to command_line

* Renamed program config option to command in command_line auth provider

* Made meta variable parsing in command_line auth provider optional

* Added tests for command_line auth provider

* Fixed indentation

* Suppressed wrong pylint warning

* Fixed linting

* Added test for command line auth provider login flow

* Log error when user fails authentication

* Use %r formatter instead of explicit repr()

* Mix all used names of typing module into module namespace

I consider this nasty and bad coding style, but was requested by
@awarecan for consistency with the remaining codebase.

* Small code style change

* Strip usernames with command_line auth provider
2019-02-06 16:36:41 -08:00
..
mfa_modules RFC: Call services directly (#18720) 2018-11-30 21:28:35 +01:00
permissions Check admin permission before able to manage config entries 2018-12-13 16:13:43 +01:00
providers Added command_line auth provider that validates credentials by calling a command (#19985) 2019-02-06 16:36:41 -08:00
__init__.py Add users added via credentials to admin group too (#18922) 2018-12-03 11:34:01 +01:00
auth_store.py Allow checking entity permissions based on devices (#19007) 2018-12-05 11:41:00 +01:00
const.py System groups (#18303) 2018-11-08 12:57:00 +01:00
models.py Allow checking entity permissions based on devices (#19007) 2018-12-05 11:41:00 +01:00
util.py Reorg auth (#15443) 2018-07-13 11:43:08 +02:00