How to generate access token for my clients through server-side (without password)

Following this thread. Please let me know if you find a solution to this