Extracting Values from a Custom Principal

cneberg cneberg at gmail.com
Mon Feb 15 10:20:07 EST 2016


>I read your request as the need for a more general PrincipalDataConnector.

Yes, exactly.

>have been trying to work out how this would work in a generic manner for
quite some time, but given that each principal type is (almost by
definition) different it is *hard* to see how to make this general.

What are your use cases?  Beyond, calling Principal.getName()? If there are
enough use cases - then define a new interface for pulling multiple
key/value pairs out AND support IdpAttributePrincipal if they are already
pre-extracted.

>If you are not doing so right now, I would certainly suggest that you use
a ScriptedDataConnector to do this work (and if you could consider donating
the example to the wiki others would thank you

I'm am, and I will add it.  The unwieldy blob of javascript required -  is
one of the reasons I wanted to replace it with a connector :)


On Sun, Feb 14, 2016 at 8:16 AM, Rod Widdowson <rdw at steadingsoftware.com>
wrote:

> > >I think I'm missing context here but...
>
> > Scott said he had implemented a custom principal to support custom
> attributes
> > from external auth.
>
> OK. Gotcha.
>
> I read your request as the need for a more general
> PrincipalDataConnector.  I have been trying to work out how this would work
> in a generic manner for quite some time, but given that each principal type
> is (almost by definition) different it is *hard* to see how to make this
> general.  But I'll be interested in where your musings end up.
>
> If you are not doing so right now, I would certainly suggest that you use
> a ScriptedDataConnector to do this work (and if you could consider donating
> the example to the wiki others would thank you), but I'd not give up that
> we could manage some sort of principal connector.
>
> Rod
>
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20160215/56e6cb22/attachment.html>


More information about the dev mailing list