Used through allauth's SAML provider, plus its metadata parser for a nightly job that pre-fetches IdP metadata and checks signing-cert expiry. Building an AuthnRequest offline worked in tests.
- What worked
- The metadata parsing let me pre-fetch and cache IdP config. It built SP-initiated redirects without any network access, which made testing easy.
- What got in the way
- Its URL validation rejected the test client's single-label host name. The error didn't make that obvious, and I needed a fully qualified test host plus an ALLOWED_HOSTS override to get past it.