Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
The SAML integration is broken, due to an incompatibility with the expected arguments in the
LightSaml\SpBundle
DefaultController
.This is addressed in mautic/SpBundle#2, and this PR is the proof that this works.
This PR should not be merged, but is a way to test this out.
Steps to test this PR:
This PR should be tested locally as it requires an usable IDP to test the SAML auth flow.
checkout this branch and run
composer update --lock
to get the changed lightsaml/sp-bundle dependency.Run a Mock simplesamlphp instance to be able to test the flow
Replace
<LOCAL_MAUTIC_URL>
with your local url, e.g.http://mautic.localhost
change the ports if needed if they conflict with your local setup.
go to
http://localhost:8080/simplesaml/saml2/idp/metadata.php?output=xhtml
and copy the metadata in xml format to a temp file (e.g.mautic_saml_test_metatada.xml
).go to
<LOCAL_MAUTIC_URL>/s/config/edit?tab=userconfig
and select your entity ID, upload the metadata.xml file, select a role to create users, and fill inemail
in the fieldsEmail
,First Name
andLast name
(we are testing, so no problem that the actual values are not correct). Clicksave
.go in an anonymous tab to
<LOCAL_MAUTIC_URL>
and you should be redirected to the simplesaml page (if you get there, that proofs this patch works)login with username
user1
and passwordpassword
you're redirected to Mautic and logged in as user1