flipboxfactory / saml-sp

SAML Service Provider (SP) Plugin for Craft CMS
https://saml-sp.flipboxfactory.com/
Other
19 stars 5 forks source link

EVENT_AFTER_RESPONSE_TO_USER not triggered #79

Closed dennismeissner closed 4 years ago

dennismeissner commented 4 years ago

hi @dsmrt,

i found a critical bug in your code. There is copy paste bug in Line 71. You are firing the EVENT_BEFORE_RESPONSE_TO_USER twice. The EVENT_AFTER_RESPONSE_TO_USER isn't fired anymore. This leads to users not being assigned to any groups in my case at the moment.

https://github.com/flipboxfactory/saml-sp/blob/ff443528b72434cc8782925e4eb3e9b180e40715/src/services/Login.php#L71

dsmrt commented 4 years ago

Good catch. Sorry about that. I have a patch up in https://github.com/flipboxfactory/saml-sp/releases/tag/2.4.1.

dennismeissner commented 4 years ago

Thanks again for your quick help