Remove unused TenantUserPasswordAuthenticationToken (#1966)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-08 12:29:19 +02:00
committed by GitHub
parent 03baf2a4c2
commit ade5723c8c
10 changed files with 99 additions and 223 deletions

View File

@@ -154,7 +154,7 @@ public class SecurityContextSwitch {
authorities = annotation.authorities();
}
final TestingAuthenticationToken testingAuthenticationToken = new TestingAuthenticationToken(
new TenantAwareUser(annotation.principal(), annotation.tenantId()),
new TenantAwareUser(annotation.principal(), "***", null, annotation.tenantId()),
annotation.credentials(), authorities);
testingAuthenticationToken.setDetails(
new TenantAwareAuthenticationDetails(annotation.tenantId(), annotation.controller()));