Simple auth CLI script to authenticate with Keycloak with username and password.
How to use this:
- In
direct_auth.pymodify configuration, and optionallyget_meta_attributesandlogin_hookfunctions to your needs. - Place
direct_auth.pyscript into Home assistant. I.e. pass it to Docker container through Volume. Remember where it is located - Merge authenticator configuration from
configuration.ymlto Home assistant config file and changecommandto path todirect_auth.py