Commit Graph

3 Commits

Author SHA1 Message Date
Adam Rutkowski e56baeb272
Persist login type preference (SSO/standard) (#5520)
* First pass: store login preference

* Only set login preference if SSO is used

* Change mock DNS to use port 5354 and `domain_id` for parameter

* Make login forms use flash message for error passing

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
2025-06-23 10:28:27 +00:00
Adam Rutkowski 37e718db40
End-to-end sso domain verification (#5513)
* wip

* Fix up typespcs

* Extract domain status enum to module macros

* Cancel verification jobs when integration is removed

* Revisit verification interface

* Supply local DNS server for domain ownership testing

* Rename a test

* 👾

* Use identifier when submitting domain verification

* Disallow re-verification of already verified domains
2025-06-18 09:52:48 +00:00
Adrian Gruntkowski 605447cd61
Implement real SAML authentication adapter (#5482)
* Add dependencies necessary for implementing real SAML adapter

* Implement real SAML adapter

* Add make target for easily provisioning local IdP service

* Implement a separate cookie for storing mid-auth SAML state

* Test and improve validation in `RealSAMLAdapater`

* Rename `extra/fixtures` to `extra/fixture` in consistency with `fixture`

* Avoid warnings when running test in CE mode

* Hard match on `integration_id` in `RealSAMLAdapter.signin/2`

Co-authored-by: Adam Rutkowski <hq@mtod.org>

* Improve relay state validation

Co-authored-by: Adam Rutkowski <hq@mtod.org>

* Require `integration_id` parameter in `sso` make target (#5501)

* Fix formatting

* Store assertion fixtures as XMLs instead of Base64 encoded strings

* Switch to upstream `main` branch of `simple_saml`

---------

Co-authored-by: Adam Rutkowski <hq@mtod.org>
2025-06-16 08:19:00 +00:00