flipboxfactory / saml-sp

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

Some SAML assertion attributes not being mapped #56

Closed eheiser closed 4 years ago

eheiser commented 4 years ago

I've got the SSO working fine but for whatever reason the first and lastname of the user aren't being imported. Email address is imported correctly. The first and lastname are present in the saml response (see screenhots). Any idea/suggestions why they're not being imported?

screenshot_01 screenshot_02 screenshot_03

dsmrt commented 4 years ago

I can't replicate this. Couple things come to mind:

  1. Do you have multiple SPs (my provider) enabled? Make sure to disable any providers that shouldn't be available on that environment. This just helps with making sure the correct provider is being picked up.
  2. Are you using any events hooking into the plugin or a config/saml-sp.php or are you using the project config? If you are using the project config can you copy the saml-sp section here? (remove any sensitive data please).
  3. Check the logs. You can grep the logs to find more details on how the attributes are being assigned:
    tail -f storage/logs/web.log | grep '\[saml-'

    You'll see the attribute map that's being used and the attribute being or not being mapped.

Screen Shot 2020-04-14 at 9 27 54 AM

eheiser commented 4 years ago

Damien,

just wanted to let you know that after some additional testing things are up and running for us. Thank you for getting back to me, really appreciate it. Stay safe! Erwin

Erwin Heiser | Focus! bvba focus-webdesign.be | erwin.heiser@gmail.com

On Tue, 14 Apr 2020 at 17:34, Damien Smrt notifications@github.com wrote:

I can't replicate this. Couple things come to mind:

  1. Do you have multiple SPs (my provider) enabled? Make sure to disable any providers that shouldn't be available on that environment. This just helps with making sure the correct provider is being picked up.
  2. Are you using any events hooking into the plugin or a config/saml-sp.php or are you using the project config? If you are using the project config can you copy the saml-sp section here? (remove any sensitive data please).
  3. Check the logs. You can grep the logs to find more details on how the attributes are being assigned:

tail -f storage/logs/web.log | grep '[saml-'

You'll see the attribute map that's being used and the attribute being or not being mapped.

[image: Screen Shot 2020-04-14 at 9 27 54 AM] https://user-images.githubusercontent.com/1995478/79243168-7e42e800-7e32-11ea-9740-d7b76aeaeffe.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/flipboxfactory/saml-sp/issues/56#issuecomment-613513532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVHFS2XYBDKNJ6F5ULAKTRMR67PANCNFSM4MHUDQOQ .

dsmrt commented 4 years ago

Awesome! let me know if there's anything else we can help with!