authentik icon indicating copy to clipboard operation
authentik copied to clipboard

SAML Source Import Metadata & Periodic Pull

Open SoarinFerret opened this issue 9 months ago • 5 comments

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

SoarinFerret avatar Feb 24 '26 22:02 SoarinFerret

This is planned, but there's no telling when we'll have time for it. PRs welcome! :)

gergosimonyi avatar Feb 24 '26 23:02 gergosimonyi

I appreciate the quick response, I'll take a look at building a PR!

SoarinFerret avatar Feb 25 '26 00:02 SoarinFerret

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.

headlesssetup avatar Feb 25 '26 18:02 headlesssetup

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

ikob avatar Mar 18 '26 00:03 ikob

I submitted PR #21224 to support to import and reload IdP metadata.

ikob avatar Apr 01 '26 14:04 ikob