Dependable and Secure Realtime in Spring Boot with Auth0 and Ably

How is the TokenRequest handled. How does the code get say the clientId out of the TokenRequest.
Thanks