[ 
https://issues.apache.org/jira/browse/KARAF-6156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16766810#comment-16766810
 ] 

ASF GitHub Bot commented on KARAF-6156:
---------------------------------------

mattrpav commented on pull request #765: [KARAF-6156] Update JaasHelper to 
support extending Karaf JAAS
URL: https://github.com/apache/karaf/pull/765
 
 
   Use an .isAssignableFrom() instead of class name string comparison. This 
allows for extending Karaf JAAS [User,Group,Role]Principal classes
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> SecurityContext returns RolePrincipal instead of UserPrincipal
> --------------------------------------------------------------
>
>                 Key: KARAF-6156
>                 URL: https://issues.apache.org/jira/browse/KARAF-6156
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.1.6
>            Reporter: Matt Pavlovich
>            Priority: Major
>
> The SecurityContext in a CXFJAX-RS service is ~75% of the time returning a 
> RolePrincipal instead of UserPrincipal. 
> * Custom JAAS provider
> * Only one JAAS provider
> * Realm named 'karaf'
> Seems like same issue posted to karaf-users mailinglist [Nabble 
> link|http://karaf.922171.n3.nabble.com/securityContext-getUserPrincipal-in-JAX-RS-return-unexpected-RolePrincipal-Why-tt4053628.html]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to