<div dir="ltr">Hi,<div><br></div><div>In Google we must set attribute mapping so we can send the good name for attribute.</div><div>Here is the mapping we set in Google :</div><div><img src="cid:ii_kljb24p31" alt="image.png" width="562" height="205"><br></div><div></div><div><br></div><div>Here is the extract of the
preferences.php file :<br></div><div> 'samlAttributesMap' => array(<br> 'mail' => 'mail',<br> 'uid' => 'uid',<br> 'displayName' => 'fname',<br> 'organization' => 'My company'),<br></div><div><br></div><div>If we could use a syntaxe like "
'fname + lname'" it should be OK (must have a space between fname and lname ;) ) </div><div><br></div><div>Regards,</div><div>--</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Didier Métral</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 24 févr. 2021 à 11:03, Jules <<a href="mailto:Jules@zend.to">Jules@zend.to</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi Didier,<br>
<br>
Please can you send me exactly what your preferences.php setting for
'samlAttributesMap' looks like at the moment?<br>
I don't know what the Google attributes map would look like, so
would like to see the syntax to ensure that whatever solution I end
up with does actually work with Google!<br>
<br>
And what are the "right-hand-side" values in that map that would
give you the first name and last name?<br>
<br>
I'm thinking of a syntax where you could put something like<br>
<tt>'displayName' =>
'<a href="http://schemas.microsoft.com/identity/claims/forename" target="_blank">http://schemas.microsoft.com/identity/claims/forename</a> +
<a href="http://schemas.microsoft.com/identity/claims/familyname" target="_blank">http://schemas.microsoft.com/identity/claims/familyname</a>',</tt><br>
in the map. Then my code would concatenate the 2 with a single space
in between.<br>
<br>
Would that work as a solution?<br>
<br>
<div>Cheers,<br>
Jules.<br>
<br>
On Tue 23/02/21 15:06, Didier METRAL via ZendTo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>We just installed ZendTo in my company but we're facing a
"problem" : We can't set displayName</div>
<div>We are using Google for SAML authentification and Google
can send user first name and last name but not in one
attribute.</div>
<div>The only attributes we can set in SamlAttributesMap
are mail, uid displayName and Organization.</div>
<div>Is there a way to use First Name and Last Name to generate
displayName ?</div>
<div><br clear="all">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p style="margin:0cm 0cm 12pt">Regards,</p>
<p style="margin:0cm 0cm 12pt"><b><span style="font-size:10pt;font-family:Arial,sans-serif">Didier METRAL</span></b><br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ZendTo mailing list
<a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a href="http://jul.es/mailman/listinfo/zendto" target="_blank">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Always do sober what you said you'd do drunk. That will teach you
to keep your mouth shut.' - Ernest Hemingway
<a href="http://www.Zend.To" target="_blank">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</div>
</blockquote></div>