From 1f63707683f992973eb5c174b5367a8ef04144b4 Mon Sep 17 00:00:00 2001 From: docJerem Date: Tue, 26 May 2026 17:14:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Docs=20/=20Sync=20migration=20gu?= =?UTF-8?q?ide=20&=20changelog=20with=201.1.1=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add flow: field to consume_signin_response/2 return shape in the Samly migration guide (matches the source @doc and 1.1.1 behaviour) - Add the missing [1.1.1] compare-link reference at the bottom of the changelog so the version heading is linked like the others --- CHANGELOG.md | 1 + guides/migrating_from_samly.md | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b730335..6a88995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,6 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Unused routes and pre-session create pipeline from Samly - Hardcoded Nebulex cache — replaced with delegate pattern +[1.1.1]: https://github.com/docJerem/ex_saml/compare/v1.1.0...v1.1.1 [1.1.0]: https://github.com/docJerem/ex_saml/compare/v1.0.2...v1.1.0 [1.0.2]: https://github.com/docJerem/ex_saml/compare/v1.0.1...v1.0.2 [1.0.1]: https://github.com/docJerem/ex_saml/compare/v1.0.0...v1.0.1 diff --git a/guides/migrating_from_samly.md b/guides/migrating_from_samly.md index c0bf5ee..ab8e4f2 100644 --- a/guides/migrating_from_samly.md +++ b/guides/migrating_from_samly.md @@ -146,9 +146,12 @@ Samly allowed a custom Plug pipeline to run before storing the assertion: ExSaml's `SPHandler.consume_signin_response/2` now returns a structured result instead: ```elixir -{:ok, %{assertion: assertion, nonce: nonce, user_token: token, redirect_uri: uri}} +{:ok, %{flow: flow, assertion: assertion, nonce: nonce, user_token: token, redirect_uri: uri}} ``` +`flow` is `:sp_initiated` or `:idp_initiated` (with `nonce` being `nil` for the +IdP-initiated case, since no AuthnRequest — and therefore no nonce — exists). + Move your custom assertion processing logic to the code that calls `consume_signin_response/2`. ### debug_mode