Custom Principal & Authentication Data Passing

Daniel Fisher dfisher at vt.edu
Mon Jun 8 23:47:35 EDT 2015


On Mon, Jun 8, 2015 at 7:35 PM, cneberg <cneberg at gmail.com> wrote:

> It also only appears to work if I my class extends UsernamePrincipal
> otherwise it gives  urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal.
>
> When you say serialization do you mean normal java serialization - which
> my principal supports (stand alone it does any way, java serialization
> fails when I extend UsernamePrincipal), or serialization to json like is
> done in the GenericPrincipalSerializer.java and if its the latter, how do I
> register my own serializer?
>

Does your custom principal have a constructor that takes a single string as
the name? The GenericPrincipalSerializer requires that convention.

--Daniel Fisher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150608/ed3819d3/attachment.html>


More information about the users mailing list