SAML Source Import Metadata & Periodic Pull
Is your feature request related to a problem?
Currently, the only way to add a SAML source is by manually filling out the fields. This can be tedious and lead to configuration issues.
Describe the solution you'd like
I'd like to see authentik offer a "import from metadata" feature for SAML Sources. Additionally, I would like to see a periodic pull from metadata URLs to retrieve new certificates and settings from the upstream IDP.
Describe alternatives that you've considered
N/A
Additional context
No response
This is planned, but there's no telling when we'll have time for it. PRs welcome! :)
I appreciate the quick response, I'll take a look at building a PR!
I kinda second this, since configuring (and re-configuring) SAML sources is tedious and error-prone, and this is exactly what metadata was supposed to solve. Not only for SAML, for OIDC /wellknown/ and other types (WS Fed?) as well.
But I'd be very, very skeptical of "periodic auto-pull and auto-reconfig" of metadata.
Sorry — let me briefly share, from my own experience, why SAML metadata handling tends to be trickier than it looks.
The hard part is usually not “periodic pull” itself, but deciding what should (and should not) change when metadata updates: whether manual settings get overwritten, how to handle certificate rotation safely, and how to surface/resolve drift without surprising admins.
For context, I’ve been experimenting with an eduGAIN-style approach (an aggregate metadata feed with ~10k+ EntityDescriptors). It’s close to periodic auto-pull/refresh, but it does introduce a flow that’s a bit different from authentik’s existing per-entity metadata handling.
I can prepare a PR, but it’s fairly large and the flow difference makes me hesitant to submit it
I submitted PR #21224 to support to import and reload IdP metadata.