Class SecurityUtilActingIdentityTest
java.lang.Object
ubic.gemma.core.security.util.SecurityUtilActingIdentityTest
Who
SecurityUtil.resolveActingIdentity(String) records as having directed an action, and when an agent must
name that person.
Paul, 2026-09-15: "the agent is the authenticated user the edit is attributed to, 'on behalf of' is the person
(administrator for example) who directed the agent", "on_behalf_of=gemmaAgent is always going to be wrong", and, of
a ruling's decidedBy, "it should be the person".
- Author:
- gembro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtearDown()voidvoidA person naming themselves records the same identity as naming no one, so it stays allowed.voidvoidvoid
-
Constructor Details
-
SecurityUtilActingIdentityTest
public SecurityUtilActingIdentityTest()
-
-
Method Details
-
tearDown
@AfterEach public void tearDown() -
testAnAgentNamingItselfIsRefused
@Test public void testAnAgentNamingItselfIsRefused() -
testAnAgentNamingThePersonWhoDirectedIt
@Test public void testAnAgentNamingThePersonWhoDirectedIt() -
testAnAdministratorNamingThemselves
@Test public void testAnAdministratorNamingThemselves()A person naming themselves records the same identity as naming no one, so it stays allowed. -
testAnAgentRulingWithoutNamingAnyoneIsRefused
@Test public void testAnAgentRulingWithoutNamingAnyoneIsRefused() -
testACuratorRulingForThemselvesNeedsNoOnBehalfOf
@Test public void testACuratorRulingForThemselvesNeedsNoOnBehalfOf()
-