mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-21 14:48:50 +00:00
When ~/.netrc contains an entry matching the Keycloak host, open_url() silently replaces the OIDC Bearer header with Basic auth, causing 401 errors. Add use_netrc option (default false) to all keycloak modules and pass it through to both open_url() call sites. Includes molecule test scenario (netrc) that verifies both behaviors: - default use_netrc=false ignores .netrc (fix works) - use_netrc=true picks up .netrc and gets 401 (proves the bug) Fixes: https://github.com/ansible-middleware/keycloak/issues/403