Update local-llm OAuth2 provider in Authentik to support password grant type with headless auth flow.
local-llm
password
Config repo: rock/homelab — scripts/iam/authentik-provision.py
rock/homelab
scripts/iam/authentik-provision.py
"password"
SA_AUTHENTICATION_FLOW_PK
roles
permissions
curl -X POST https://authentik.riotpiao.com/application/o/token/ \ -d "grant_type=password&client_id=local-llm&client_secret=$SECRET&username=rock&password=$PASS&scope=openid roles permissions" # Expect JWT with roles/permissions claims
Nothing — this is the first task in the chain
Closed manually — applied via scripts/iam/provision-rbac.py (not tracked). No PR.
No dependencies set.
The note is not visible to the blocked user.
Summary
Update
local-llmOAuth2 provider in Authentik to supportpasswordgrant type with headless auth flow.Config repo:
rock/homelab—scripts/iam/authentik-provision.pyChanges
"password"tolocal-llmgrant_typesSA_AUTHENTICATION_FLOW_PK(headless: identification->password->login, no MFA)roles+permissionsscope mappings to property_mappingsVerification
Review checklist
Blocked by
Nothing — this is the first task in the chain
Closed manually — applied via scripts/iam/provision-rbac.py (not tracked). No PR.