Agents and queue authentication problems

Hello @jcolp ,
Sorry if I write on this old post.
I don’t have much experience with Asterisk yet. But I think I have the same problem. I need a person who works in a call center to access a queue after login and log out with a logout. Since the person (Agent) who works at the Call Center does not have a dedicated device but accesses the first free device (telephone), I need to authenticate on the queue, also because otherwise, I do not understand how reporting could be carried out. Also, for security reasons, I cannot let a person access the queue by guessing only the agentId of a colleague.
Could you help me understand with an example of how to do it? Thank you so much.