[GLASSFISH-8544] princpals always wrapped in "WebPrincipal" Created: 17/Jun/09 Updated: 09/Jul/12
|Fix Version/s:||not determined|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Operating System: All
I have a custom realm and login module in which I add a custom principal to the
A quick snippet of code:
I don't know, but is WebPrincipal necessary? If the authentication succeeds,
|Comment by jluehe [ 18/Jun/09 ]|
|Comment by monzillo [ 19/Jun/09 ]|
The WebPrincipal contains what amounts to a Subject, so that "other" principals
that said, all EE containers are required to support an api that can be used to
Subject s = (Subject)
this policycontext handler may be called from your application code, at which
You can see more details in the jacc spec (I believe null is returned when
let us know if the PolicyContext api satisfies your immediate need.
I also think we should add a getCustomPrincipal method to WebPrincipal.
|Comment by kumara [ 01/Sep/09 ]|
Changing version from 9.1.1 to v2.1 to reflect new name/version.
|Comment by Tom Mueller [ 06/Mar/12 ]|
Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.
|Comment by cpiggott [ 09/Jul/12 ]|
I have this exact same issue. I need to attach extra information to a Principal, so I made a custom AppservPasswordLoginModule that overwrites commit() and attaches my own CustomPrincipal to the Subject. When it gets to my (JAX-RS) webapp it's a WebPrincipal with no way to get to the customPrincipal inside.