Samly - Add SAML SSO to your Phoenix application (now with multiple identity provider support)

Awesome, thanks for this!!!

We’ve been testing it on Phoenix 1.4 and have our login working – but logout is throwing an error.

In login – the conn params includes idp_id_seg which seems to be pulled from glob and it looks correct.

But in logout, our idp_id_seg is missing and doesn’t seem to be extracted from the glob path_params (which are what we’d expect, with the idp in the 2nd position).

We end up getting:

invalid_request unknown IdP

Any ideas what might cause logout to fail when login works?

Thanks so much for your work on this! Really helping to get Elixir into enterprise environments :slight_smile:
Scott