Attribute Mapping Question

Yasser Afifi yasser at 3dissue.com
Thu Jan 21 12:04:03 EST 2016


Hello

I am testing my new idp with the sp. I am sending only one attribute from
idp to the sp. The attribute is brought from mysql database.

my attribute resolver in my idp is like this:

    <resolver:AttributeDefinition id="id" xsi:type="ad:Simple"
sourceAttributeID="id">
       <resolver:Dependency ref="users" />
        <resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString"
name="urn:mace:dir:attribute-def:id" encodeType="false" />
        <resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" friendlyName="id"
encodeType="false" />
    </resolver:AttributeDefinition>



    <!-- ========================================== -->
    <!--      MY SQL Data Connector                   -->
    <!-- ========================================== -->
<resolver:DataConnector id="users" xsi:type="dc:RelationalDatabase">
   <dc:ApplicationManagedConnection
       jdbcDriver="com.mysql.jdbc.Driver"
  jdbcURL="jdbc:mysql://localhost:3306/mydb?characterEncoding=UTF-8"
       jdbcUserName="root"
  jdbcPassword= ""/>
   <dc:QueryTemplate>
       <![CDATA[
         SELECT * FROM users WHERE id=1
       ]]>
   </dc:QueryTemplate>

  <dc:Column columnName="id" attributeID="id" />

   <dc:ResultCache elementTimeToLive="PT10S"/>
</resolver:DataConnector>

and my attribute-map in my sp looks like:

    <Attribute name="uurn:mace:dir:attribute-def:id" id="id">
    </Attribute>

But for some reason i am not getting this id at the sp. When I check the
session (using https://localhost/Shibboleth.sso/Session) there is nothing
under attributes

Thanks a lot
Kindest Regards,
Yasser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160121/fcb6f130/attachment.html>


More information about the users mailing list