[jbossws-commits] [jbossws/jbossws-cxf] 674444: [JBWS-4133] Use reflection to check if a Principal...
by Brian Stansberry
Branch: refs/heads/master
Home: https://github.com/jbossws/jbossws-cxf
Commit: 6744440f4ef531f8fc974122f68651c44adf0c05
https://github.com/jbossws/jbossws-cxf/commit/6744440f4ef531f8fc974122f68...
Author: Brian Stansberry <brian.stansberry(a)redhat.com>
Date: 2021-05-07 (Fri, 07 May 2021)
Changed paths:
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingPolicyInterceptor.java
Log Message:
-----------
[JBWS-4133] Use reflection to check if a Principal is a Group
This approach relies on the fact that the first Principal in a subject will represent the caller's identity.
The code already assumes that the first non-Group Principal is that, so this is not a new assumption.
Code that populates a Subject that cannot use Group must ensure that whatever principal represents the security identity gets added first.
5 years, 7 months