[JBoss JIRA] (SECURITY-747) SubjectInfo.getRoles is null with cached credentials in SPNEGO
by Darran Lofthouse (JIRA)
[ https://issues.jboss.org/browse/SECURITY-747?page=com.atlassian.jira.plug... ]
Darran Lofthouse reassigned SECURITY-747:
-----------------------------------------
Assignee: (was: Darran Lofthouse)
> SubjectInfo.getRoles is null with cached credentials in SPNEGO
> --------------------------------------------------------------
>
> Key: SECURITY-747
> URL: https://issues.jboss.org/browse/SECURITY-747
> Project: PicketBox
> Issue Type: Bug
> Components: Negotiation
> Environment: EAP 6.1
> SPNEGO setup with KERBEROS
> Reporter: Chris Dolphy
>
> SecurityContextAssociation.getSecurityContext().getSubjectInfo().getRoles() returns the user's roles on the initial login, but if you refresh you get null. All subsequent calls will return null.
> I'm using the 3rd test in JBoss Negotiation Toolkit. If you refresh after logging in, you get a NullPointerException
> It appears that with Basic autentication, JBossWebRealm.authenticate calls
> JBossAuthenticationManager.getSubjectRoles
> which sets the roles on the SubjectInfo. However, with SPNEGO
> (NegotiationAuthenticator) JBossWebRealm.authenticate is not called on
> subsequent requests due to request.getUserPrincipal() being set, so the roles are never set on SubjectInfo. However, the role information is in SubjectInfo as a principal.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-3416) NPE in Undertow Extension if login module doesn't set Principal
by Darran Lofthouse (JIRA)
[ https://issues.jboss.org/browse/WFLY-3416?page=com.atlassian.jira.plugin.... ]
Darran Lofthouse reassigned WFLY-3416:
--------------------------------------
Assignee: (was: Darran Lofthouse)
> NPE in Undertow Extension if login module doesn't set Principal
> ---------------------------------------------------------------
>
> Key: WFLY-3416
> URL: https://issues.jboss.org/browse/WFLY-3416
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.1.0.CR2
> Reporter: Josef Cacek
>
> NPE is thrown during authentication if a LoginModule doesn't set any principal to the Subject.
> The problem comes from {{org.wildfly.extension.undertow.security.AccountImpl}} constructor call {{principal.getName()}}.
> {code}
> Caused by: java.lang.NullPointerException
> at org.wildfly.extension.undertow.security.AccountImpl.<init>(AccountImpl.java:61)
> at org.wildfly.extension.undertow.security.JAASIdentityManagerImpl.verifyCredential(JAASIdentityManagerImpl.java:123)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-2036) Review of AbstractControllerTestBase
by Darran Lofthouse (JIRA)
[ https://issues.jboss.org/browse/WFLY-2036?page=com.atlassian.jira.plugin.... ]
Darran Lofthouse reassigned WFLY-2036:
--------------------------------------
Assignee: (was: Darran Lofthouse)
> Review of AbstractControllerTestBase
> ------------------------------------
>
> Key: WFLY-2036
> URL: https://issues.jboss.org/browse/WFLY-2036
> Project: WildFly
> Issue Type: Task
> Components: Test Suite
> Affects Versions: 8.0.0.Alpha4
> Reporter: Darran Lofthouse
> Fix For: Awaiting Volunteers
>
>
> Currently we have the abstract class AbstractControllerTestBase to use as the base for simplified controller testing, however due to visibility problems we now have three versions of this class which have also started to diverge slightly.
> Before this goes too far we should try and bring this back down to one. Extensions of this class also have certain amount of common functionality.
> Maybe also work converting some of this to a 'org.junit.runner.Runner' to avoid the need for inheritance, additional annotations can then be used to define how to configure the controller being tested.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (REMJMX-97) Optimise addNotificationListener so no handback needs to be sent.
by Darran Lofthouse (JIRA)
[ https://issues.jboss.org/browse/REMJMX-97?page=com.atlassian.jira.plugin.... ]
Darran Lofthouse reassigned REMJMX-97:
--------------------------------------
Assignee: (was: Darran Lofthouse)
> Optimise addNotificationListener so no handback needs to be sent.
> -----------------------------------------------------------------
>
> Key: REMJMX-97
> URL: https://issues.jboss.org/browse/REMJMX-97
> Project: Remoting JMX
> Issue Type: Sub-task
> Components: Connection
> Reporter: Darran Lofthouse
> Fix For: 2.0.2.CR1
>
>
> The following method call has been updated as a result of REMJMX-91 so null is sent for the handback - this is to retain compatibility with existing installations currently using version 2 of the protocol.
> {code}
> public void addNotificationListener(final ObjectName name, NotificationListener listener,
> final NotificationFilter filter, final Object handback) throws InstanceNotFoundException, IOException {
> {code}
> In version 3 we can drop sending the handle.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months