V6.4 Technical account login error
Hello,
We are starting to use technical accounts to delegate some part of linshare administration.
Even with all permissions, the technical account cannot login:
[DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.FilterChainProxy:doFilterInternal:Securing GET /webservice/rest/admin/v5/authentication/authorized [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.context.HttpSessionSecurityContextRepository:readSecurityContextFromSession:Retrieved SecurityContextImpl [Authentication=UsernamePasswordAuthenticationToken [Principal=org.springframework.security.core.userdetails.User [Username=ae51fb55-2cdb-4415-afb8-a5331feb27d5, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]], Credentials=[PROTECTED], Authenticated=true, Details=LinShareWebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=D31D3C4010F15145412C909CD8C939DC], Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]]] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.context.SecurityContextPersistenceFilter:doFilter:Set SecurityContextHolder to SecurityContextImpl [Authentication=UsernamePasswordAuthenticationToken [Principal=org.springframework.security.core.userdetails.User [Username=ae51fb55-2cdb-4415-afb8-a5331feb27d5, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]], Credentials=[PROTECTED], Authenticated=true, Details=LinShareWebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=D31D3C4010F15145412C909CD8C939DC], Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]]] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.linagora.linshare.auth.details.service.DatabaseUserDetailsServiceImpl:loadUserByUsername:Looking for [email protected] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.linagora.linshare.auth.details.service.DatabaseUserDetailsServiceImpl:loadUserByUsername:User found Support(ae51fb55-2cdb-4415-afb8-a5331feb27d5) [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.linagora.linshare.auth.providers.DatabaseAuthenticationProvider:createSuccessAuthentication:Authenticated user [INFO]:http-nio-8080-exec-1:20250611.085102:org.linagora.linshare.auth.LinShareApplicationEventPublisher:publishAuthenticationSuccess:org.springframework.security.core.userdetails.User [Username=ae51fb55-2cdb-4415-afb8-a5331feb27d5, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]] [INFO]:http-nio-8080-exec-1:20250611.085102:org.linagora.linshare.core.service.LogEntryService:insert:AuditLogEntry [AuthUser=AccountMto [firstName=null, lastName=null, name=Support, [email protected], uuid=ae51fb55-2cdb-4415-afb8-a5331feb27d5, role=DELEGATION, accountType=TECHNICAL_ACCOUNT, domain=Domain [uuid=LinShareRootDomain, label=LinShareRootDomain]], resourceUuid=ae51fb55-2cdb-4415-afb8-a5331feb27d5, action=SUCCESS, type=AUTHENTICATION, creationDate=Wed Jun 11 08:51:02 CEST 2025] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.data.mongodb.core.MongoTemplate:insertDocument:Inserting Document containing fields: [uuid, value, domainUuid, action, creationDate, statisticDate, resourceType, type, _class] in collection: basic_statistic [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.data.mongodb.core.MongoTemplate:insertDocument:Inserting Document containing fields: [message, actor, relatedAccounts, uuid, authUser, resourceUuid, action, type, creationDate, relatedDomains, _class] in collection: audit_log_entries [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.authentication.www.BasicAuthenticationFilter:doFilterInternal:Set SecurityContextHolder to UsernamePasswordAuthenticationToken [Principal=org.springframework.security.core.userdetails.User [Username=ae51fb55-2cdb-4415-afb8-a5331feb27d5, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]], Credentials=[PROTECTED], Authenticated=true, Details=LinShareWebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=D31D3C4010F15145412C909CD8C939DC], Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.access.intercept.FilterSecurityInterceptor:attemptAuthorization:Failed to authorize filter invocation [GET /webservice/rest/admin/v5/authentication/authorized] with attributes [ROLE_ADMIN] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.access.AccessDeniedHandlerImpl:handle:Responding with 403 status code [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.context.HttpSessionSecurityContextRepository:saveContext:Stored SecurityContextImpl [Authentication=UsernamePasswordAuthenticationToken [Principal=org.springframework.security.core.userdetails.User [Username=ae51fb55-2cdb-4415-afb8-a5331feb27d5, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]], Credentials=[PROTECTED], Authenticated=true, Details=LinShareWebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=D31D3C4010F15145412C909CD8C939DC], Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]]] to HttpSession [org.apache.catalina.session.StandardSessionFacade@3f58d433] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.context.HttpSessionSecurityContextRepository:saveContext:Stored SecurityContextImpl [Authentication=UsernamePasswordAuthenticationToken [Principal=org.springframework.security.core.userdetails.User [Username=ae51fb55-2cdb-4415-afb8-a5331feb27d5, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]], Credentials=[PROTECTED], Authenticated=true, Details=LinShareWebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=D31D3C4010F15145412C909CD8C939DC], Granted Authorities=[ROLE_AUTH, ROLE_DELEGATION]]] to HttpSession [org.apache.catalina.session.StandardSessionFacade@3f58d433] [DEBUG]:http-nio-8080-exec-1:20250611.085102:org.springframework.security.web.context.SecurityContextPersistenceFilter:doFilter:Cleared SecurityContextHolder to complete request
Best regards,
Hello @PhidarkMM,
A technical account is a service account and for LinShare it's used to authenticate to delegation API not in interfaces.
Thanks, Regards, Fabien