Skip to content

Instantly share code, notes, and snippets.

@kevinoconnor7
kevinoconnor7 / authelia.sh
Last active October 5, 2026 19:36
Home Assistant Command Line Authentication for Authelia
#!/bin/bash
#
# Home Assistant command_line auth provider backed by Authelia.
#
# Home Assistant passes the user-supplied credentials in the `username` and
# `password` environment variables. Exit code 0 means success; anything else
# is a failed login.
set -euo pipefail
IFS=$'\n\t'