Hi,<br><br>I have implemented a customized LoginModule, which is used by IdP to do the real authentication. This part is working now. Next part I want to do is put the username into Assertion and release it to SP.<br><br>I know that the best way to do is implementing a customized DataConnector, but I am wondering whether it is possible to eliminate this, since all the IdP will expose is just a "username". The username is just a principal name which is already available after user login.<br>
<br>My question is in the attribute-resolver.xml, how can I configure it to get the principal name and put into an attribute?<br><br>I am looking for something like:<br><br><resolver:AttributeDefinition xsi:type="ad:Simple" id="username" sourceAttributeID="$PrincipalName$"><br>
<resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:mail" /><br> <resolver:AttributeEncoder xsi:type="enc:SAML2String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"/><br>
</resolver:AttributeDefinition><br><br>Is that feasible?<br><br>Best,<br clear="all">Yaowen<br>