Creation of DataConnector

Giuseppe Peletti giuseppe.peletti at digitaslbi.com
Wed Oct 19 12:08:41 EDT 2016


Hi Rod,
luckily I know Spring very well; what I don¹t understand is the
Shibboleth¹s logic to create/configure the DataConnector, grab the value
of the username from the request and return some values based on the input.

If it was just setting properties in spring xml file it would be very easy
;-)

tia

Giuseppe Peletti





On 19/10/16 17:42, "dev on behalf of Rod Widdowson"
<dev-bounces at shibboleth.net on behalf of rdw at steadingsoftware.com> wrote:

>> This is MyDataConnector
>
>So, your data connector returns one attribute called "test value from
>class" with no values.
>
>You then return from resolution with just one attribute resolved (with
>another name which is going to cause all sort of problems
>down stream).
>
>There absolutely nothing in your data connector which requires
>configuration and so all the stuff in your xml file is not used (it
>just goes into the parent bean and is forgotten about).
>
>You need to:
>
>1) Make your connector extend the correct base class
>2) Add setters for all the properties you want to configure and set them
>in the xml file (This is Spring 101 and we cannot help you
>with that).
>3) In your doDataConnectorResolve create all the attributes that you need
>with the values that are relevant and put them into the
>map with the correct name
>
>You appear to be struggling with (2) and I am not sure how to help you
>beyond pointing you to the Spring documentation.
>
>As an example the StaticDataConnector is a good example to read over to
>see how all the moving parts lock together, but it is a very
>bad place to start coding from.
>
>Rod
>
>--
>To unsubscribe from this list send an email to
>dev-unsubscribe at shibboleth.net





------------------------------------------------------------------------
Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.


More information about the dev mailing list