[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-286) SeamTest - Add support for authenticated user
Bradley Smith (JIRA)
jira-events at jboss.com
Wed Nov 29 14:27:56 EST 2006
[ http://jira.jboss.com/jira/browse/JBSEAM-286?page=comments#action_12347938 ]
Bradley Smith commented on JBSEAM-286:
--------------------------------------
I rechecked - yes it does work if I make the Class of the @In - principal be the interface, Principal (like your example above). However, the problem I ran into was when I had:
@In
private UserPrincipal userPrincipal
where UserPrincipal is my/our custom Principal implementation.
Would you be willing to add support for another override like this:
@Override
public String getPrincipalName() {
return "Gavin";
}
which has this signature?
@Override
public Principal getPrincipal() {
return MyCustomPrincipalClass;
}
Thanks.
> SeamTest - Add support for authenticated user
> ---------------------------------------------
>
> Key: JBSEAM-286
> URL: http://jira.jboss.com/jira/browse/JBSEAM-286
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.0.1
> Environment: All
> Reporter: Bradley Smith
> Assigned To: Gavin King
> Fix For: 1.1.0.CR1
>
> Attachments: MockExternalContext.java, MockExternalContext.java, MockHttpServletRequest.java, MockHttpServletRequest.java, SeamTest.java, SeamTest.java
>
>
> Add a property of type Principal and another property (maybe of type Group []?) to Script. The Principal should be used by the MockHttpServletRequest to represent and authenticated user. The Group [] property should be used by the MockHttpServletRequest to support the isUserInRole() implementation.
> These properties ideally should be settable by overriding the setup() method of Script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list