Closed jeffsikes closed 6 years ago
Good catch @jeffsikes ... so you are using a callable here, correct? I'll get a patch going for this ASAP.
Yes, using a callable from the config/saml-sp.php
Thanks!
Got this patch up in RC3 -> https://github.com/flipboxfactory/saml-sp/commit/60d4dd5f4ca8057f1c4383caea9973f79417a4f4
Let me know how this works out for you.
Thanks!
If a custom user field is passed, the login process is failing because the parameter $craftProperty is an OBJECT rather than a string.
https://github.com/flipboxfactory/saml-sp/blob/9030fa5ce6725c56117614ef842daa6e574cf6c5/src/services/Login.php#L522
https://github.com/flipboxfactory/saml-sp/blob/9030fa5ce6725c56117614ef842daa6e574cf6c5/src/services/Login.php#L539
If you remove the string definition on the $craftProperty variable being passed in, then login is successful because it allows an object to be passed - the assignUserProperty functions already has logic to handle this (is_string($craftProperty)) so the SSO process seems to work after making this change. (Line 542)