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