authentik icon indicating copy to clipboard operation
authentik copied to clipboard

SAML Provider metadata import selects first endpoint even if binding is unsupported

Open ikob opened this issue 8 months ago • 3 comments

Describe the bug

When creating a new SAML Provider via “SAML Provider from Metadata”, authentik sometimes selects an endpoint binding that authentik does not support. This happens when the metadata contains multiple endpoints and the first entry uses an unsupported binding; the current selection logic ends up applying that first entry anyway, resulting in an invalid configuration (see screenshot).

This behavior appears to be “by design” in the current implementation (it is even mentioned in comments), but it leads to a poor default and a broken provider setup out-of-the-box.

I am preparing a PR to change the selection logic so that authentik skips unsupported bindings and chooses a supported default (e.g., HTTP-POST / HTTP-Redirect) instead. This issue is to track that change and link the PR.

How to reproduce

  1. Go to Admin console.
  2. Click Applications / Provides
  3. Click "Create" button
  4. Choose SAML Provider from Metadata, then click Next
  5. Input and select arbitrary Name and flows. And upload attached metadata.
  6. Click finish.
  7. Looks like successfully configured Provider, but appears URL of unsupported binding, such as SOAP.

multi-bindings.xml

Expected behavior

Expected behavior

  • When importing metadata, authentik should prefer supported bindings and never auto-select an unsupported binding as the provider’s default.

Actual behavior

  • The provider is configured with the first binding from metadata even if it is unsupported, causing misconfiguration.

Screenshots

Image

Additional context

No response

Deployment Method

Docker

Version

2026.5.0-rc1

Relevant log output


ikob avatar Mar 19 '26 08:03 ikob

We're looking at your linked PR. Thank you for reporting.

dewi-tik avatar Apr 02 '26 16:04 dewi-tik

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@dewi-tik, Shall we make another PR to catch up latest branch?

ikob avatar Jun 04 '26 13:06 ikob