core/tests/auth/providers
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
..
__init__.py Reorg auth (#15443) 2018-07-13 11:43:08 +02:00
test_command_line.py Added command_line auth provider that validates credentials by calling a command (#19985) 2019-02-06 16:36:41 -08:00
test_command_line_cmd.sh Added command_line auth provider that validates credentials by calling a command (#19985) 2019-02-06 16:36:41 -08:00
test_homeassistant.py Allow usernames to be case-insensitive (#20558) 2019-01-29 08:28:52 +01:00
test_insecure_example.py Add multi-factor authentication modules (#15489) 2018-08-22 09:52:34 +02:00
test_legacy_api_password.py Update name legacy api password (#16455) 2018-09-08 22:10:42 +02:00
test_trusted_networks.py Update trusted networks flow (#16227) 2018-08-28 00:37:15 +02:00