I've been testing dyuproject and run into two issues:
1. Attribute exchange per request
If I understand RelyingParty correctly, attribute exchange can only be
configured on a global level with RelyingParty.addListener(). This is
very unfortunate for my use case as I basically only need attributes
with the first login of a new user. Is there a way to configure
attributes on a per request basis?
2. Unit testing
I wonder how other developers test their code? RelyingParty and
OpenIDUser are both final and they are not behind interfaces.
Thanks for any hints,
Marc
--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.
On Mon, Dec 7, 2009 at 7:15 PM, Marc <marc...@gmail.com> wrote:I've been testing dyuproject and run into two issues:
1. Attribute exchange per request
If I understand RelyingParty correctly, attribute exchange can only be
configured on a global level with RelyingParty.addListener(). This is
very unfortunate for my use case as I basically only need attributes
with the first login of a new user. Is there a way to configure
attributes on a per request basis?
Definitely ... you can filter it based on the request.
Simply supply your own listener that wraps the extension ... and
delegate to that extension based on the state of your application.
2. Unit testing
I wonder how other developers test their code? RelyingParty and
OpenIDUser are both final and they are not behind interfaces.
They are pretty mockable actually ... a developer (Dominique Derrien) was able to test it with mock objects.
See http://code.google.com/p/dyuproject/issues/detail?id=16