[Security & JAAS/JBoss] - Re: Custom principal in Web application
by brent.atkinson
I am actually struggling with this issue in 4.0.5GA. What is interesting is that the wiki article for using custom principals doesn't say that the custom principal will be used as the caller principal if you simply supply the class name via the module-option.
I have stepped through a login session using UserRolesLoginModule with the principalClass option set, and I see that the createIdentity() calls create Principals of the custom type. What is interesting is that no where a custom principal type get assigned to a group named CallerPrincipal like the login module example in the wiki article does.
I created a login module much like the code example in the wiki, and it worked as I expected - I call request.getUserPrincipal().getClass() in a jsp and it gives me the custom principal class name.
Why would you allow customization of the principal class (via the module option), but not use a principal of that type for the caller principal? I can't tell if I am looking at a bug or if I am just misunderstanding the intent of the option.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114473#4114473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114473
18 years, 4 months
[JBoss Seam] - Re: getAsObject not being called - why?
by X490812
Thanks you for the reply Pete - How would I debug this? The scenario is that on render of my xhtml, it renders correctly - the basedonhottask is checked or not checked depending on whether basedonhottask is 0 or 1. On submit of the form after changing the checkbos for basedonhottask, it goes right back into getAsString - it does not call the backing bean getter or setter first, as I have set breakpoints on those as well as the converter functions. After exiting getAsString, I get
| sourceId=caseDetailForm:hotTask[severity=(ERROR 2), summary=(/caseDetail.xhtml @95,41 value="#{selectedCase.basedonhottask}": java.lang.IllegalArgumentException: argument type mismatch), detail=(/caseDetail.xhtml @95,41 value="#{selectedCase.basedonhottask}": java.lang.IllegalArgumentException: argument type mismatch)]
|
How can I determine the issue? How can I hook into the apply request values phase to determine why the getAsObject is not being called?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114471#4114471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114471
18 years, 4 months