Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion guides/migrating_from_samly.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading