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