I don't mean to be difficult, but I'm still not a fan of all the OpenID
specific methods. The couple things about this proposal which still
don't seem right to me are ...
1. Why do we need to support multiple OpenID urls per user? Nobody has
answered that question yet and it seems to me that it's important. It's
a pretty significant simplification to the implementation if we only
support a single OpenID url per user account, so unless there is a very
specific reason we think multiple are required then I don't see why we
would do that. If it really is necessary then fine, it just seems like
a relevant question which nobody has answered.
2. The point of the generic support for user attributes was to avoid
methods like the OpenID specific ones proposed for the UserManager.
Those methods should be generic methods for user attributes, not OpenID
specific, such as ...
getUserByAttribute("openid.url", "attribute.value");
getUser().getAttribute("openid.url");
getUser().setAttribute("openid.url", "attribute.value");
3. I don't know why it would be necessary to modify the UIAction class
at all and even the modifications to the Register class should be
non-OpenID specific. The way the prepopulating of the Register action
should work is that *if* the client is known then the result of
getAuthenticatedUser() should return a User object representing them
which can then be used to prepopulate the bean used by the action.
The current Register action implementation isn't quite right yet which
is why some changes are necessary, but if it was right then there should
really be no need to modify that code at all. The current code is doing
some funky usingSSO/fromSSO code which doesn't need to be at that place
in the code. That code can be pushed up into the RollerSession code so
that if the client is identifiable via SSO or any other way then we can
access a User object that represents them.
sorry to be tough, it's just that if we don't do this right on the first
pass then we'll have to go back and redo it later, which is more work :/
-- Allen
Dave wrote:
Just a heads-up...
Tatyana has updated her OpenID for Roller proposal here:
http://cwiki.apache.org/confluence/x/zVAB
Feedback is welcome.
- Dave